Lines Matching +full:c +full:- +full:version +full:- +full:name
2 # SPDX-License-Identifier: GPL-2.0-only
4 # Print the assembler name and its version in a 5 or 6-digit form.
5 # Also, perform the minimum version check.
6 # (If it is the integrated assembler, return 0 as the version, and
7 # skip the version check.)
9 set -e
11 # Convert the version string x.y.z to a canonical 5 or 6-digit form.
15 set -- $1
21 echo $((10000 * $1 + 100 * ${2:-0} + ${3:-0}))
24 # Clang fails to handle -Wa,--version unless -fno-integrated-as is given.
25 # We check -fintegrated-as, expecting it is explicitly passed in for the
29 while [ $# -gt 0 ]; do
30 if [ "$1" = -fintegrated-as ]; then
32 # version here. It is the same as the clang version, and
33 # it has been already checked by scripts/cc-version.sh.
45 # Get the first line of the --version output.
48 set -- $(LC_ALL=C "$@" -Wa,--version -c -x assembler-with-cpp /dev/null -o /dev/null 2>/dev/null)
52 set -- $1
54 min_tool_version=$(dirname $0)/min-tool-version.sh
56 if [ "$1" = GNU -a "$2" = assembler ]; then
57 shift $(($# - 1))
58 version=$1
60 name=GNU
66 # Some distributions append a package release number, as in 2.34-4.fc32
68 version=${version%-*}
70 cversion=$(get_canonical_version $version)
73 if [ "$cversion" -lt "$min_cversion" ]; then
76 echo >&2 "*** Your $name assembler version: $version"
77 echo >&2 "*** Minimum $name assembler version: $min_version"
82 echo $name $cversion