sticky_vars = Variables(args=ARGUMENTS)
Export('sticky_vars')
+# Sticky variables that should be exported
+export_vars = []
+Export('export_vars')
+
# Non-sticky variables only apply to the current build.
nonsticky_vars = Variables(args=ARGUMENTS)
Export('nonsticky_vars')
)
# These variables get exported to #defines in config/*.hh (see src/SConscript).
-env.ExportVariables = ['FULL_SYSTEM', 'USE_FENV', \
- 'USE_MYSQL', 'NO_FAST_ALLOC', 'FAST_ALLOC_DEBUG', \
- 'FAST_ALLOC_STATS', 'SS_COMPATIBLE_FP', \
- 'USE_CHECKER', 'TARGET_ISA', 'CP_ANNOTATE']
+export_vars += ['FULL_SYSTEM', 'USE_FENV', 'USE_MYSQL',
+ 'NO_FAST_ALLOC', 'FAST_ALLOC_DEBUG', 'FAST_ALLOC_STATS',
+ 'SS_COMPATIBLE_FP', 'USE_CHECKER', 'TARGET_ISA', 'CP_ANNOTATE']
###################################################
#
# Children need to see the environment
Export('env')
-build_env = dict([(opt, env[opt]) for opt in env.ExportVariables])
+build_env = dict([(opt, env[opt]) for opt in export_vars])
def sort_list(_list):
"""return a sorted copy of '_list'"""
build_dir = joinpath(env['BUILDDIR'], root[prefix_len:])
SConscript(joinpath(root, 'SConscript'), build_dir=build_dir)
-for opt in env.ExportVariables:
+for opt in export_vars:
env.ConfigFile(opt)
########################################################################