Merge pull request #17 from rogerz/master

Customize command string in scons
This commit is contained in:
Bernard Xiong 2013-02-01 18:54:28 -08:00
commit 6a60d40334
1 changed files with 15 additions and 3 deletions

View File

@ -113,9 +113,21 @@ 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('--verbose',
dest='verbose',
action='store_true',
default=False,
help='print verbose information during build')
if not GetOption('verbose'):
# override the default verbose command string
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)