scons: Capture TMPDIR envvar
During gem5 build, the compiler may produce some large intermediate files. The default path is /tmp, but in some usecase, it's under a small file system, and we may want to change the storage path to a sufficient large file system. This CL captures TMPDIR environment variables, to allow users change the default temporary directory. Change-Id: Ib3fad301f36df9f3f08eb9b6cfeb4df1b7df5d1a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/64873 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Han-sheng Liu
parent
32e4ac65a8
commit
a13549ebef
@@ -77,6 +77,7 @@ def EnvDefaults(env):
|
||||
"INCLUDE_SERVER_", # distcc pump server settings
|
||||
"M5", # M5 configuration (e.g., path to kernels)
|
||||
"NIX_", # wrapped binaries if using nix package manager
|
||||
"TMPDIR", # default temporary directory
|
||||
]
|
||||
|
||||
for key, val in sorted(os.environ.items()):
|
||||
|
||||
Reference in New Issue
Block a user