@@ -176,7 +176,10 @@ pre_initialize_variables () {
176176 : ${ARMC6_BIN_DIR:=/ usr/ bin}
177177 : ${ARM_NONE_EABI_GCC_PREFIX:= arm-none-eabi-}
178178 : ${ARM_LINUX_GNUEABI_GCC_PREFIX:= arm-linux-gnueabi-}
179-
179+ : ${CLANG_LATEST:= " clang-16" }
180+ : ${CLANG_EARLIEST:= " clang-3.5" }
181+ : ${GCC_LATEST:= " gcc-12" }
182+ : ${GCC_EARLIEST:= " gcc-4.7" }
180183 # if MAKEFLAGS is not set add the -j option to speed up invocations of make
181184 if [ -z " ${MAKEFLAGS+set} " ]; then
182185 export MAKEFLAGS=" -j$( all_sh_nproc) "
@@ -273,6 +276,10 @@ General options:
273276Tool path options:
274277 --armc5-bin-dir=<ARMC5_bin_dir_path> ARM Compiler 5 bin directory.
275278 --armc6-bin-dir=<ARMC6_bin_dir_path> ARM Compiler 6 bin directory.
279+ --clang-earliest=<Clang_earliest_path> Earliest version of clang available
280+ --clang-latest=<Clang_latest_path> Latest version of clang available
281+ --gcc-earliest=<GCC_earliest_path> Earliest version of GCC available
282+ --gcc-latest=<GCC_latest_path> Latest version of GCC available
276283 --gnutls-cli=<GnuTLS_cli_path> GnuTLS client executable to use for most tests.
277284 --gnutls-serv=<GnuTLS_serv_path> GnuTLS server executable to use for most tests.
278285 --gnutls-legacy-cli=<GnuTLS_cli_path> GnuTLS client executable to use for legacy tests.
@@ -439,9 +446,13 @@ pre_parse_command_line () {
439446 --armcc) no_armcc=;;
440447 --armc5-bin-dir) shift ; ;; # assignment to ARMC5_BIN_DIR done in pre_parse_command_line_for_dirs
441448 --armc6-bin-dir) shift ; ;; # assignment to ARMC6_BIN_DIR done in pre_parse_command_line_for_dirs
449+ --clang-earliest) shift ; CLANG_EARLIEST=" $1 " ;;
450+ --clang-latest) shift ; CLANG_LATEST=" $1 " ;;
442451 --error-test) error_test=$(( error_test + 1 )) ;;
443452 --except) all_except=1;;
444453 --force|-f) FORCE=1;;
454+ --gcc-earliest) shift ; GCC_EARLIEST=" $1 " ;;
455+ --gcc-latest) shift ; GCC_LATEST=" $1 " ;;
445456 --gnutls-cli) shift ; GNUTLS_CLI=" $1 " ;;
446457 --gnutls-legacy-cli) shift ; GNUTLS_LEGACY_CLI=" $1 " ;;
447458 --gnutls-legacy-serv) shift ; GNUTLS_LEGACY_SERV=" $1 " ;;
@@ -4015,34 +4026,34 @@ fi
40154026
40164027component_test_clang_latest_opt () {
40174028 scripts/config.py full
4018- test_build_opt ' full config' clang-latest -O0 -Os -O2
4029+ test_build_opt ' full config' " $CLANG_LATEST " -O0 -Os -O2
40194030}
40204031support_test_clang_latest_opt () {
4021- type clang-latest > /dev/null 2> /dev/null
4032+ type " $CLANG_LATEST " > /dev/null 2> /dev/null
40224033}
40234034
40244035component_test_clang_earliest_opt () {
40254036 scripts/config.py full
4026- test_build_opt ' full config' clang-earliest -O0
4037+ test_build_opt ' full config' " $CLANG_EARLIEST " -O0
40274038}
40284039support_test_clang_earliest_opt () {
4029- type clang-earliest > /dev/null 2> /dev/null
4040+ type " $CLANG_EARLIEST " > /dev/null 2> /dev/null
40304041}
40314042
40324043component_test_gcc_latest_opt () {
40334044 scripts/config.py full
4034- test_build_opt ' full config' gcc-latest -O0 -Os -O2
4045+ test_build_opt ' full config' " $GCC_LATEST " -O0 -Os -O2
40354046}
40364047support_test_gcc_latest_opt () {
4037- type gcc-latest > /dev/null 2> /dev/null
4048+ type " $GCC_LATEST " > /dev/null 2> /dev/null
40384049}
40394050
40404051component_test_gcc_earliest_opt () {
40414052 scripts/config.py full
4042- test_build_opt ' full config' gcc-earliest -O0
4053+ test_build_opt ' full config' " $GCC_EARLIEST " -O0
40434054}
40444055support_test_gcc_earliest_opt () {
4045- type gcc-earliest > /dev/null 2> /dev/null
4056+ type " $GCC_EARLIEST " > /dev/null 2> /dev/null
40464057}
40474058
40484059component_build_mbedtls_config_file () {
0 commit comments