Use customized command string in scons

This commit is contained in:
Rogerz Zhang 2013-01-19 21:41:32 +08:00
parent b91271d490
commit 8dcb8a6af6
1 changed files with 14 additions and 3 deletions

View File

@ -113,9 +113,20 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
and rtconfig.PLATFORM == 'gcc':
AddDepend('RT_USING_MINILIBC')
#env['CCCOMSTR'] = "CC $TARGET"
#env['ASCOMSTR'] = "AS $TARGET"
#env['LINKCOMSTR'] = "Link $TARGET"
# add comstr option
AddOption('--default-comstr',
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
objs = SConscript('SConscript', variant_dir='build', duplicate=0)