summaryrefslogtreecommitdiff
path: root/scripts
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)
commitf8d8029026d7bd8f337a32a4c2acd848db8ddb74 (patch)
tree4a9a5f56ee2ee54eef5d59d380767d2efd01be66 /scripts
parente714fd6a141c791963ef784cad8b83d59029cb65 (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>
Diffstat (limited to 'scripts')
-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 1309100..71ae981 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -291,6 +291,8 @@ do_cc_core() {
[ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
+ [ "${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)