Add default= option to SConstruct.
build/SConstruct: Add 'default=' argument to specify base config to use when setting up a new build dir with a different name, e.g.: scons default=ALPHA_SE USE_MYSQL=no ALPHA_SE_NOSQL/m5.opt --HG-- extra : convert_revision : 0f7ee1414b3e84b36114415182baf54a8adab9b7
This commit is contained in:
parent
b08436c674
commit
e939472190
1 changed files with 4 additions and 1 deletions
|
@ -322,7 +322,10 @@ for build_dir in build_dirs:
|
||||||
# Set env according to the build directory config.
|
# Set env according to the build directory config.
|
||||||
|
|
||||||
sticky_opts.files = []
|
sticky_opts.files = []
|
||||||
default_options_file = os.path.join('build_options', 'default', build_dir)
|
# Name of default options file is taken from 'default=' on command
|
||||||
|
# line if set, otherwise name of build dir.
|
||||||
|
default_options_file = os.path.join('build_options', 'default',
|
||||||
|
ARGUMENTS.get('default', build_dir))
|
||||||
if os.path.isfile(default_options_file):
|
if os.path.isfile(default_options_file):
|
||||||
sticky_opts.files.append(default_options_file)
|
sticky_opts.files.append(default_options_file)
|
||||||
current_options_file = os.path.join('build_options', 'current', build_dir)
|
current_options_file = os.path.join('build_options', 'current', build_dir)
|
||||||
|
|
Loading…
Reference in a new issue