Merge pull request #17 from rogerz/master
Customize command string in scons
This commit is contained in:
commit
6a60d40334
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue