Use customized command string in scons
This commit is contained in:
parent
b91271d490
commit
8dcb8a6af6
|
@ -113,9 +113,20 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
||||||
and rtconfig.PLATFORM == 'gcc':
|
and rtconfig.PLATFORM == 'gcc':
|
||||||
AddDepend('RT_USING_MINILIBC')
|
AddDepend('RT_USING_MINILIBC')
|
||||||
|
|
||||||
#env['CCCOMSTR'] = "CC $TARGET"
|
# add comstr option
|
||||||
#env['ASCOMSTR'] = "AS $TARGET"
|
AddOption('--default-comstr',
|
||||||
#env['LINKCOMSTR'] = "Link $TARGET"
|
dest='default_comstr',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='use default command string')
|
||||||
|
|
||||||
|
if not GetOption('default_comstr'):
|
||||||
|
env.Replace(
|
||||||
|
ASCOMSTR = 'AS $TARGET',
|
||||||
|
CCCOMSTR = 'CC $TARGET',
|
||||||
|
CXXCOMSTR = 'CXX $TARGET',
|
||||||
|
LINKCOMSTR = 'LINK $TARGET'
|
||||||
|
)
|
||||||
|
|
||||||
# board build script
|
# board build script
|
||||||
objs = SConscript('SConscript', variant_dir='build', duplicate=0)
|
objs = SConscript('SConscript', variant_dir='build', duplicate=0)
|
||||||
|
|
Loading…
Reference in New Issue