[Tools] Add g++ link patch when enble C++.
This commit is contained in:
parent
ae7237dc53
commit
c0b2a1a4b4
|
@ -303,6 +303,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
||||||
LINKCOMSTR = 'LINK $TARGET'
|
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
|
# 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
|
# have their own components etc. If they point to the same folder, SCons
|
||||||
# would find the wrong source code to compile.
|
# would find the wrong source code to compile.
|
||||||
|
|
Loading…
Reference in New Issue