summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-04-28 04:03:01 -0700
committerGabe Black <gabeblack@google.com>2017-05-01 23:28:11 +0000
commit8d476b41e60cfdadbde50c2d9ae54900455f6098 (patch)
treecd7542feb18121a41f5880f75d8c0e5a25bc64af /src/SConscript
parent6bdd897f04f4efdf90d0761c6d31d3f960f4eacf (diff)
downloadgem5-8d476b41e60cfdadbde50c2d9ae54900455f6098.tar.xz
scons: Group Source-s based on what SConscript included them.
The groups won't be perfectly balanced or optimally planned, but this requires no thought and breaks the object files down into a reasonable number of reasonably sized groups. Change-Id: I6542fc807aaf356a9be751093f68e2e29f0b1586 Reviewed-on: https://gem5-review.googlesource.com/2946 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/SConscript')
-rwxr-xr-xsrc/SConscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SConscript b/src/SConscript
index 99f986a24..3742cdd83 100755
--- a/src/SConscript
+++ b/src/SConscript
@@ -359,6 +359,7 @@ for root, dirs, files in os.walk(base_dir, topdown=True):
if 'SConscript' in files:
build_dir = joinpath(env['BUILDDIR'], root[len(base_dir) + 1:])
+ Source.set_group(build_dir)
SConscript(joinpath(root, 'SConscript'), variant_dir=build_dir)
for extra_dir in extras_dir_list: