summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-18 03:32:50 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-18 03:32:50 (GMT)
commit02fb9df45a1cad68ed6eea91655e643d9f81fc68 (patch)
tree37c3053a284714af70091488392684191823323d
parent3ecfe9776c6d9be538ec8680c4d9d5ddc5220562 (diff)
cc/gcc: Apply CT_CC_GCC_DISABLE_PCH to do_cc_core.
Otherwise, users have to input --disable-libstdcxx-pch option when building bare-metal CANADIAN C++ compiler. Reviewed-by: Michael Hope Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> (transplanted from e3e1c9d45bddfbfb433ee9d583faf42fa31f50c0)
-rw-r--r--scripts/build/cc/gcc.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 05df729..96e78df 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -288,6 +288,8 @@ do_cc_core() {
extra_config+=(--disable-libgomp)
extra_config+=(--disable-libmudflap)
+ [ "${CT_CC_GCC_DISABLE_PCH}" = "y" ] && extra_config+=("--disable-libstdcxx-pch")
+
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
# Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)