util-m5: Fix Scons exports when building the m5 utility
The name of the imported environment in ext/googletest/SConscript was changed from `main` to `env` in [1]. Updated the `exports` when building the `m5` utility to export the correct name. [1] https://gem5-review.googlesource.com/c/public/gem5/+/56750 Change-Id: I195b760e9092fbe63e5de1316403e090c1fa4e1f Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/57909 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -179,7 +179,7 @@ native_dir = build_dir.Dir('native')
|
||||
|
||||
# Bring in the googletest sources.
|
||||
native.SConscript(googletest_dir.File('SConscript'),
|
||||
variant_dir=native_dir.Dir('googletest'), exports={ 'main': native })
|
||||
variant_dir=native_dir.Dir('googletest'), exports={ 'env': native })
|
||||
|
||||
native.SConscript(src_dir.File('SConscript.native'),
|
||||
variant_dir=native_dir, exports={ 'env': native })
|
||||
@@ -268,6 +268,6 @@ for root, dirs, files in os.walk(abspath(src_dir)):
|
||||
# Bring in the googletest sources.
|
||||
env.SConscript(googletest_dir.File('SConscript'),
|
||||
variant_dir=abi_dir.Dir('googletest'),
|
||||
exports={ 'main': env })
|
||||
exports='env')
|
||||
env.SConscript(src_dir.File('SConscript'),
|
||||
variant_dir=abi_dir, exports='env')
|
||||
|
||||
Reference in New Issue
Block a user