2020-07-07 21:17:58 +01:00
|
|
|
diff --git a/SConstruct b/SConstruct
|
2021-05-30 03:17:22 +01:00
|
|
|
index d138c7b250..c925bf908e 100644
|
2020-07-07 21:17:58 +01:00
|
|
|
--- a/SConstruct
|
|
|
|
+++ b/SConstruct
|
2021-05-30 03:17:22 +01:00
|
|
|
@@ -65,10 +65,10 @@ elif platform_arg == "javascript":
|
|
|
|
# want to have to pull in manually.
|
|
|
|
# Then we prepend PATH to make it take precedence, while preserving SCons' own entries.
|
2018-02-21 12:23:11 +00:00
|
|
|
env_base = Environment(tools=custom_tools)
|
2021-05-30 03:17:22 +01:00
|
|
|
-env_base.PrependENVPath("PATH", os.getenv("PATH"))
|
|
|
|
-env_base.PrependENVPath("PKG_CONFIG_PATH", os.getenv("PKG_CONFIG_PATH"))
|
|
|
|
-if "TERM" in os.environ: # Used for colored output.
|
2020-07-07 21:17:58 +01:00
|
|
|
- env_base["ENV"]["TERM"] = os.environ["TERM"]
|
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]
|
2021-05-30 03:17:22 +01:00
|
|
|
+
|
|
|
|
|
2020-02-12 23:27:23 +00:00
|
|
|
env_base.disabled_modules = []
|
|
|
|
env_base.use_ptrcall = False
|