File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
77set -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".
3434orig_args=" $@ "
35- set -- $( get_compiler_info " $@ " )
35+ set -- $( get_c_compiler_info " $@ " )
3636
3737name=$1
3838
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 ;;
5858esac
@@ -62,7 +62,7 @@ min_cversion=$(get_canonical_version $min_version)
6262
6363if [ " $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 " ***"
You can’t perform that action at this time.
0 commit comments