diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-12-13 14:29:39 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-12-13 23:57:08 +0000 |
commit | a45289dee8bc5fb325cab1429c6730dcaf86c58d (patch) | |
tree | c58bd15a69830216f7f5bcc5a37ccbc59b8ddfd7 /src/base/refcnt.hh | |
parent | ed371e0fec0b40a21b5f60ccbca3e40a2e459734 (diff) | |
download | gem5-a45289dee8bc5fb325cab1429c6730dcaf86c58d.tar.xz |
scons, tests: Fix occasional linking error
There are some cases where scons incorrectly adds the same object
multiple times to the linker command line. This seems to be caused by
the test's source list being updated in place when determining test
framework dependencies. Fix this by explicitly copying the source list
and manipulate the copy.
Without this change, the following command fails:
scons ./build/ARM/unittests.opt/base/pixeltest.xml
Whereas this command succeeds:
scons ./build/ARM/base/pixeltest.opt
Change-Id: I642efdf9d62a5478e49ba51efe1a3a5ba453e21f
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/6641
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/base/refcnt.hh')
0 files changed, 0 insertions, 0 deletions