1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Remove test_clang_opt check

The component functions in all.sh will be listed using
compgen instead of sed so this check is not needed.

Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
This commit is contained in:
Gowtham Suresh Kumar
2023-07-28 16:36:25 +01:00
parent 186731b22a
commit 8d45ec8b97

View File

@@ -195,13 +195,6 @@ pre_initialize_variables () {
# they are defined. # they are defined.
ALL_COMPONENTS=$(sed -n 's/^ *component_\([0-9A-Z_a-z]*\) *().*/\1/p' <"$0") ALL_COMPONENTS=$(sed -n 's/^ *component_\([0-9A-Z_a-z]*\) *().*/\1/p' <"$0")
# For Linux platforms we run latest/earliest versions of clang and the
# test_clang_opt function is only for FreeBSD. This condition removes
# test_clang_opt element from the ALL_COMPONENTS array for Linux.
if [[ $(uname) == "Linux" ]]; then
ALL_COMPONENTS=( "${ALL_COMPONENTS[@]/test_clang_opt}" )
fi
# Exclude components that are not supported on this platform. # Exclude components that are not supported on this platform.
SUPPORTED_COMPONENTS= SUPPORTED_COMPONENTS=
for component in $ALL_COMPONENTS; do for component in $ALL_COMPONENTS; do