2020-07-07 21:17:58 +01:00
|
|
|
diff --git a/SConstruct b/SConstruct
|
|
|
|
index b3d033dc90..04b8dcc832 100644
|
|
|
|
--- a/SConstruct
|
|
|
|
+++ b/SConstruct
|
|
|
|
@@ -62,10 +62,9 @@ elif platform_arg == "javascript":
|
|
|
|
custom_tools = ["cc", "c++", "ar", "link", "textfile", "zip"]
|
|
|
|
|
2018-02-21 12:23:11 +00:00
|
|
|
env_base = Environment(tools=custom_tools)
|
2020-07-07 21:17:58 +01:00
|
|
|
-if "TERM" in os.environ:
|
|
|
|
- env_base["ENV"]["TERM"] = os.environ["TERM"]
|
|
|
|
-env_base.AppendENVPath("PATH", os.getenv("PATH"))
|
|
|
|
-env_base.AppendENVPath("PKG_CONFIG_PATH", os.getenv("PKG_CONFIG_PATH"))
|
2018-02-21 12:23:11 +00:00
|
|
|
+for k in ("TERM", "PATH", "PKG_CONFIG_PATH"):
|
|
|
|
+ if (k in os.environ):
|
|
|
|
+ env_base["ENV"][k] = os.environ[k]
|
2020-02-12 23:27:23 +00:00
|
|
|
env_base.disabled_modules = []
|
|
|
|
env_base.use_ptrcall = False
|
|
|
|
env_base.module_version_string = ""
|