summaryrefslogtreecommitdiff
path: root/src/SConscript
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2017-12-13 13:16:40 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-12-13 23:57:08 +0000
commitbace877821f2ac4a74174dd356990c5ddc738370 (patch)
tree7f5bd89ac4ac728a2d0c29b0925ef27e624b7559 /src/SConscript
parentf6486a1bbe7714850980b9669d44ef8dec343a2a (diff)
downloadgem5-bace877821f2ac4a74174dd356990c5ddc738370.tar.xz
scons: Make sure GTests have the right environment variables
SCons currently scrubs the environment variables used by GTests too aggressively. This breaks systems where libraries are installed in non-standard locations that need to be specified in LD_LIBRARY_PATH. Run said tests in the gtest_env SCons environment which white-lists the important environment variables. Change-Id: I5fc8fb5e51f09644dc976ee97b21c78ab349bf7d Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/6623 Reviewed-by: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/SConscript')
-rwxr-xr-xsrc/SConscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SConscript b/src/SConscript
index 7cd711693..57a2d9648 100755
--- a/src/SConscript
+++ b/src/SConscript
@@ -1102,7 +1102,7 @@ def makeEnv(env, label, objsfx, strip=False, disable_partial=False, **kwargs):
test.dir.File('%s.%s' % (test.target, label)), test_objs))
gtest_target = Dir(new_env['BUILDDIR']).File('unittests.%s' % label)
- AlwaysBuild(Command(gtest_target, gtests, gtests))
+ AlwaysBuild(gtest_env.Command(gtest_target, gtests, gtests))
progname = exename
if strip: