Skip to content

Commit 9efd368

Browse files
committed
scripts: cc-version: mention it is the C compiler
Since we have a Rust compiler too, be clear on what compiler we are talking about. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent c8eb092 commit 9efd368

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/cc-version.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: GPL-2.0
33
#
4-
# Print the compiler name and its version in a 5 or 6-digit form.
4+
# Print the C compiler name and its version in a 5 or 6-digit form.
55
# Also, perform the minimum version check.
66

77
set -e
88

9-
# Print the compiler name and some version components.
10-
get_compiler_info()
9+
# Print the C compiler name and some version components.
10+
get_c_compiler_info()
1111
{
1212
cat <<- EOF | "$@" -E -P -x c - 2>/dev/null
1313
#if defined(__clang__)
@@ -32,7 +32,7 @@ get_canonical_version()
3232

3333
# $@ instead of $1 because multiple words might be given, e.g. CC="ccache gcc".
3434
orig_args="$@"
35-
set -- $(get_compiler_info "$@")
35+
set -- $(get_c_compiler_info "$@")
3636

3737
name=$1
3838

@@ -52,7 +52,7 @@ ICC)
5252
min_version=$($min_tool_version icc)
5353
;;
5454
*)
55-
echo "$orig_args: unknown compiler" >&2
55+
echo "$orig_args: unknown C compiler" >&2
5656
exit 1
5757
;;
5858
esac
@@ -62,7 +62,7 @@ min_cversion=$(get_canonical_version $min_version)
6262

6363
if [ "$cversion" -lt "$min_cversion" ]; then
6464
echo >&2 "***"
65-
echo >&2 "*** Compiler is too old."
65+
echo >&2 "*** C compiler is too old."
6666
echo >&2 "*** Your $name version: $version"
6767
echo >&2 "*** Minimum $name version: $min_version"
6868
echo >&2 "***"

0 commit comments

Comments
 (0)