|
@@ -6,18 +6,6 @@
|
|
|
|
|
|
set -e
|
|
|
|
|
|
-# When you raise the minimum compiler version, please update
|
|
|
-# Documentation/process/changes.rst as well.
|
|
|
-gcc_min_version=4.9.0
|
|
|
-clang_min_version=10.0.1
|
|
|
-icc_min_version=16.0.3 # temporary
|
|
|
-
|
|
|
-# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293
|
|
|
-# https://lore.kernel.org/r/[email protected]
|
|
|
-if [ "$SRCARCH" = arm64 ]; then
|
|
|
- gcc_min_version=5.1.0
|
|
|
-fi
|
|
|
-
|
|
|
# Print the compiler name and some version components.
|
|
|
get_compiler_info()
|
|
|
{
|
|
@@ -48,18 +36,20 @@ set -- $(get_compiler_info "$@")
|
|
|
|
|
|
name=$1
|
|
|
|
|
|
+min_tool_version=$(dirname $0)/min-tool-version.sh
|
|
|
+
|
|
|
case "$name" in
|
|
|
GCC)
|
|
|
version=$2.$3.$4
|
|
|
- min_version=$gcc_min_version
|
|
|
+ min_version=$($min_tool_version gcc)
|
|
|
;;
|
|
|
Clang)
|
|
|
version=$2.$3.$4
|
|
|
- min_version=$clang_min_version
|
|
|
+ min_version=$($min_tool_version llvm)
|
|
|
;;
|
|
|
ICC)
|
|
|
version=$(($2 / 100)).$(($2 % 100)).$3
|
|
|
- min_version=$icc_min_version
|
|
|
+ min_version=$($min_tool_version icc)
|
|
|
;;
|
|
|
*)
|
|
|
echo "$orig_args: unknown compiler" >&2
|