mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
@@ -3978,19 +3978,16 @@ build_test_config_combos() {
|
|||||||
target="t"
|
target="t"
|
||||||
clang_args=""
|
clang_args=""
|
||||||
for ((j = 0; j < ${len}; j++)); do
|
for ((j = 0; j < ${len}; j++)); do
|
||||||
opt=${options[j]}
|
opt=
|
||||||
X=$(((i >> j) & 1))
|
if (((i >> j) & 1)); then
|
||||||
[[ $X == 0 ]] && opt="" || opt="-D${opt}"
|
opt=-D${options[j]}
|
||||||
|
fi
|
||||||
clang_args="${clang_args} ${opt}"
|
clang_args="${clang_args} ${opt}"
|
||||||
target="${target}${opt}"
|
target="${target}${opt}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# check that combination is not known to be invalid
|
# if combination is not known to be invalid, add it to the makefile
|
||||||
invalid=""
|
if [[ -z $validate_options ]] || [[ $($validate_options "${clang_args}") == "" ]] ; then
|
||||||
[[ "$validate_options" != "" ]] && invalid=$(${validate_options} "${clang_args}")
|
|
||||||
|
|
||||||
# if valid, add it to the makefile
|
|
||||||
if [[ "$invalid" == "" ]]; then
|
|
||||||
cmd="${compile_cmd} ${clang_args}"
|
cmd="${compile_cmd} ${clang_args}"
|
||||||
echo "${target}:" >> ${makefile}
|
echo "${target}:" >> ${makefile}
|
||||||
echo -e "\t$cmd" >> ${makefile}
|
echo -e "\t$cmd" >> ${makefile}
|
||||||
|
Reference in New Issue
Block a user