mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-30 17:46:57 +00:00
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)
This commit is contained in:
parent
3ecfe9776c
commit
02fb9df45a
@ -288,6 +288,8 @@ do_cc_core() {
|
|||||||
extra_config+=(--disable-libgomp)
|
extra_config+=(--disable-libgomp)
|
||||||
extra_config+=(--disable-libmudflap)
|
extra_config+=(--disable-libmudflap)
|
||||||
|
|
||||||
|
[ "${CT_CC_GCC_DISABLE_PCH}" = "y" ] && extra_config+=("--disable-libstdcxx-pch")
|
||||||
|
|
||||||
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
|
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)
|
# Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)
|
||||||
|
Loading…
Reference in New Issue
Block a user