Added --dump_env option.
This commit is contained in:
parent
02904158b7
commit
55f57d55e6
24
SConscript
24
SConscript
@ -146,13 +146,20 @@ AddOption(
|
||||
action = 'store_true'
|
||||
)
|
||||
|
||||
build_type = GetOption('build_type')
|
||||
unity_mode = GetOption('unity_mode')
|
||||
variant = GetOption('variant')
|
||||
enable_asan = GetOption('enable_asan')
|
||||
config_file = GetOption('config_file')
|
||||
compiler = GetOption('compiler')
|
||||
AddOption(
|
||||
'--dump_env',
|
||||
dest = 'dump_env',
|
||||
action = 'store_true'
|
||||
)
|
||||
|
||||
build_type = GetOption('build_type')
|
||||
unity_mode = GetOption('unity_mode')
|
||||
variant = GetOption('variant')
|
||||
enable_asan = GetOption('enable_asan')
|
||||
config_file = GetOption('config_file')
|
||||
compiler = GetOption('compiler')
|
||||
update_repositories = GetOption('update_repositories')
|
||||
dump_env = GetOption('dump_env')
|
||||
|
||||
default_CC = {
|
||||
'gcc': 'gcc',
|
||||
@ -305,4 +312,9 @@ env.AddMethod(_wrap_builder(env.UnityLibrary, is_lib = True), 'UnityLibrary')
|
||||
env.AddMethod(_wrap_builder(env.UnityStaticLibrary, is_lib = True), 'UnityStaticLibrary')
|
||||
env.AddMethod(_wrap_builder(env.UnitySharedLibrary, is_lib = True), 'UnitySharedLibrary')
|
||||
|
||||
if dump_env:
|
||||
print('==== Begin Environment Dump =====')
|
||||
print(env.Dump())
|
||||
print('==== End Environment Dump =====')
|
||||
|
||||
Return('env')
|
||||
|
Loading…
x
Reference in New Issue
Block a user