scons: Pass the CPATH environment variable through to SCons.

For sandbox environment, the default include may be override by CPATH.
To make the SCons can work in this environment, we need to pass CPATH
into SCons.

Change-Id: I1015f20a553a2e18595c8d2a89b209ca665879fd
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/72038
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
Yu-hsin Wang
2023-07-04 17:33:05 +08:00
parent 05ffa35426
commit 7cc4f820d7

View File

@@ -52,6 +52,7 @@ def EnvDefaults(env):
"CC",
"CXX",
"HOME",
"CPATH",
"LD_LIBRARY_PATH",
"LIBRARY_PATH",
"PATH",