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
This commit is contained in:
Zhenqiang Chen 2013-05-13 15:00:56 +08:00
parent 71e10954b7
commit 501204e8d4

View File

@ -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=""