summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-12-02 16:36:11 +0800
committerGitHub <[email protected]>2017-12-02 16:36:11 +0800
commitd629a3c87f9bdaa259589bda34f05cb8ff351826 (patch)
treeaebe96e74638e710d294d45baf43321c529f1d0e /tools
parent37dfd836cfe7fc0c159ecbfa0b48678a6ee9c6ea (diff)
parent89af35b0c3d665c77473e07ce4ac698ca3f32019 (diff)
Merge pull request #1069 from BernardXiong/master
[BSP] Add qemu-nographic script
Diffstat (limited to 'tools')
-rw-r--r--tools/building.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/building.py b/tools/building.py
index 79c013527b..d855aaebdc 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -303,6 +303,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
LINKCOMSTR = 'LINK $TARGET'
)
+ # fix the linker for C++
+ if GetDepend('RT_USING_CPLUSPLUS'):
+ if env['LINK'].find('gcc') != -1:
+ env['LINK'] = env['LINK'].replace('gcc', 'g++')
+
# we need to seperate the variant_dir for BSPs and the kernels. BSPs could
# have their own components etc. If they point to the same folder, SCons
# would find the wrong source code to compile.