diff options
author | Gabe Black <gabeblack@google.com> | 2017-05-01 20:08:59 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-05-09 16:46:27 +0000 |
commit | 80c391730b6c4c78644717617d766c9679e99c45 (patch) | |
tree | 752b444cf2d93604b3a330eba8afc453eb2fc356 | |
parent | 8b4536556086e82f8edb2cea3ee391c9c3f25f6f (diff) | |
download | gem5-80c391730b6c4c78644717617d766c9679e99c45.tar.xz |
scons: Get rid of the all_isa_deps variable.
This value can be computed more directly and more locally near where it's
used.
Change-Id: Ib5f45015494a6c8033ce0ac4b8931688f37492c8
Reviewed-on: https://gem5-review.googlesource.com/2982
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
-rwxr-xr-x | SConstruct | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct index f56c23df7..bf6a0c624 100755 --- a/SConstruct +++ b/SConstruct @@ -1330,7 +1330,6 @@ main.Prepend(CPPPATH=Dir('ext/pybind11/include/')) main['ALL_ISA_LIST'] = all_isa_list main['ALL_GPU_ISA_LIST'] = all_gpu_isa_list -all_isa_deps = {} def make_switching_dir(dname, switch_headers, env): # Generate the header. target[0] is the full path of the output # header to generate. 'source' is a dummy variable, since we get the @@ -1356,9 +1355,6 @@ def make_switching_dir(dname, switch_headers, env): for hdr in switch_headers: env.Command(hdr, [], switch_hdr_action) - isa_target = Dir('.').up().name.lower().replace('_', '-') - all_isa_deps[isa_target] = None - Export('make_switching_dir') def make_gpu_switching_dir(dname, switch_headers, env): @@ -1534,6 +1530,8 @@ def pairwise(iterable): b.next() return itertools.izip(a, b) +variant_names = [variant_name(path) for path in variant_paths] + # Create false dependencies so SCons will parse ISAs, establish # dependencies, and setup the build Environments serially. Either # SCons (likely) and/or our SConscripts (possibly) cannot cope with -j @@ -1542,7 +1540,7 @@ def pairwise(iterable): # Every time I tried to remove this, builds would fail in some # creative new way. So, don't do that. You'll want to, though, because # tests/SConscript takes a long time to make its Environments. -for t1, t2 in pairwise(sorted(all_isa_deps.iterkeys())): +for t1, t2 in pairwise(sorted(variant_names)): main.Depends('#%s-deps' % t2, '#%s-deps' % t1) main.Depends('#%s-environs' % t2, '#%s-environs' % t1) |