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>
1.1 --- a/scripts/build/cc/gcc.sh Fri Nov 18 11:47:30 2011 +0800
1.2 +++ b/scripts/build/cc/gcc.sh Fri Nov 18 11:32:50 2011 +0800
1.3 @@ -291,6 +291,8 @@
1.4
1.5 [ "${CT_TOOLCHAIN_ENABLE_NLS}" != "y" ] && extra_config+=("--disable-nls")
1.6
1.7 + [ "${CT_CC_GCC_DISABLE_PCH}" = "y" ] && extra_config+=("--disable-libstdcxx-pch")
1.8 +
1.9 CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
1.10
1.11 # Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)