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>