summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorZhenqiang Chen <zhenqiang.chen@linaro.org>2013-05-13 07:00:56 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2013-05-13 07:00:56 (GMT)
commit501204e8d48eeea4d63cb9f95af5ed490c8e99de (patch)
treeb0c11c52bf2ac9653deda8f1c3199f5975540563 /scripts/build/cc
parent71e10954b744417bdfb0be6335161d7277ed0ba3 (diff)
cc/gcc: Set CXX_FOR_BUILD for bare metal and canadian build.
>From 4.8, g++ is used as the default compiler to build the toolchain. Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> Message-Id: <CACgzC7B-LQvAw3hOYhBA7b7g0H1WtH20gqXM=Y=YFO4FrnZKWQ@mail.gmail.com> Patchwork-Id: 243590
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/gcc.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 9d9ef4d..eacff1a 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -432,6 +432,7 @@ do_cc_core_backend() {
# configurations.
if [ "${CT_BARE_METAL},${CT_CANADIAN}" = "y,y" ]; then
repair_cc="CC_FOR_BUILD=${CT_BUILD}-gcc \
+ CXX_FOR_BUILD=${CT_BUILD}-g++ \
GCC_FOR_TARGET=${CT_TARGET}-gcc"
else
repair_cc=""