提交 6a60d403 编写于 作者: B Bernard Xiong

Merge pull request #17 from rogerz/master

Customize command string in scons
...@@ -113,9 +113,21 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ ...@@ -113,9 +113,21 @@ 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('--verbose',
#env['LINKCOMSTR'] = "Link $TARGET" 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 # board build script
objs = SConscript('SConscript', variant_dir='build', duplicate=0) objs = SConscript('SConscript', variant_dir='build', duplicate=0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册