diff options
| author | bernard <[email protected]> | 2017-12-02 10:53:19 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-12-02 10:53:19 +0800 |
| commit | c0b2a1a4b4a98b829b363da51f9c2ddf4c4eb61a (patch) | |
| tree | a31c3ede0a08f3b20f62e5526abd619cfaf2a8a9 /tools | |
| parent | ae7237dc53540897a9ea40e145122276bd0b9ddc (diff) | |
[Tools] Add g++ link patch when enble C++.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/building.py | 5 |
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. |
