import SCons
-from gem5_scons import Transform
+from gem5_scons import Transform, warning, error
# This file defines how to build a particular configuration of gem5
# based on variable settings in the 'env' build environment.
if 'SConscript' in files:
build_dir = joinpath(env['BUILDDIR'], root[prefix_len:])
+ Source.set_group(build_dir)
SConscript(joinpath(root, 'SConscript'), variant_dir=build_dir)
for opt in export_vars:
# Add the C++ source file
Source(proto.cc_file, tags=proto.tags)
elif ProtoBuf.all:
- print('Got protobuf to build, but lacks support!')
- Exit(1)
+ error('Got protobuf to build, but lacks support!')
#
# Handle debug flags
for target in ['opt', 'fast', 'prof', 'perf']:
ccflags[target] += ['-O3']
else:
- print('Unknown compiler, please fix compiler options')
- Exit(1)
+ error('Unknown compiler, please fix compiler options')
# To speed things up, we only instantiate the build environments we