summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/cc/gcc.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 8aa7eeb..e39029d 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -397,11 +397,11 @@ do_gcc_core_backend() {
extra_config+=("--disable-__cxa_atexit")
fi
- if [ "${CT_CC_GCC_TM_CLONE_REGISTRY}" = "y" ]; then
- extra_config+=("--enable-tm-clone-registry")
- else
- extra_config+=("--disable-tm-clone-registry")
- fi
+ case "${CT_CC_GCC_TM_CLONE_REGISTRY}" in
+ y) extra_config+=("--enable-tm-clone-registry");;
+ m) ;;
+ "") extra_config+=("--disable-tm-clone-registry");;
+ esac
if [ -n "${CT_CC_GCC_ENABLE_CXX_FLAGS}" \
-a "${mode}" = "baremetal" ]; then
@@ -1021,11 +1021,11 @@ do_gcc_backend() {
extra_config+=("--disable-__cxa_atexit")
fi
- if [ "${CT_CC_GCC_TM_CLONE_REGISTRY}" = "y" ]; then
- extra_config+=("--enable-tm-clone-registry")
- else
- extra_config+=("--disable-tm-clone-registry")
- fi
+ case "${CT_CC_GCC_TM_CLONE_REGISTRY}" in
+ y) extra_config+=("--enable-tm-clone-registry");;
+ m) ;;
+ "") extra_config+=("--disable-tm-clone-registry");;
+ esac
if [ -n "${CT_CC_GCC_ENABLE_CXX_FLAGS}" ]; then
extra_config+=("--enable-cxx-flags=${CT_CC_GCC_ENABLE_CXX_FLAGS}")