[clang] [Clang] Propagate 'SystemDrive' environment variable for unit tests (PR #90478)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 08:00:56 PDT 2024


================
@@ -32,6 +32,8 @@
 
 if "HOME" in os.environ:
     config.environment["HOME"] = os.environ["HOME"]
+if "SystemDrive" in os.environ:
+    config.environment["SystemDrive"] = os.environ["SystemDrive"]
----------------
cor3ntin wrote:

can we do something like

```py
# Propagate directories. Wrong values might be used on windows otherwise
for key in ["TMP", "TEMP", "HOME", "SystemDrive"]:
  config.environment[key] = os.environ[key]
```

https://github.com/llvm/llvm-project/pull/90478


More information about the cfe-commits mailing list