scons: Set the partial linking group for EXTRAS dirs.
authorGabe Black <gabeblack@google.com>
Tue, 3 Dec 2019 01:59:51 +0000 (17:59 -0800)
committerGabe Black <gabeblack@google.com>
Sat, 7 Dec 2019 00:04:40 +0000 (00:04 +0000)
Partial linking heuristically links together files in the same
directory by setting a special automatic tag. That tag needs to also
be maintained when scanning EXTRAS dirs so that they don't all get
lumped in with the last normal directory that was processed.

Change-Id: I2408ea0a1eeffcf6d9994c36415a35760b225b17
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23300
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/SConscript

index 15b801a1b87b0fb13abe5c7e48cd3157f3df71fa..76bbb9e6501ad7f345c9362f68ef8559b3dbad1f 100644 (file)
@@ -606,6 +606,7 @@ for extra_dir in extras_dir_list:
 
         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: