[compiler-rt] faa7e30 - Revert "Revert "[compiler-rt] [test] Use the parent process env as base env in tests""

Sergej Jaskiewicz via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 01:30:04 PDT 2020


Author: Sergej Jaskiewicz
Date: 2020-07-14T11:29:40+03:00
New Revision: faa7e306e41ba250b1bf74511a6b0b15a944fb93

URL: https://github.com/llvm/llvm-project/commit/faa7e306e41ba250b1bf74511a6b0b15a944fb93
DIFF: https://github.com/llvm/llvm-project/commit/faa7e306e41ba250b1bf74511a6b0b15a944fb93.diff

LOG: Revert "Revert "[compiler-rt] [test] Use the parent process env as base env in tests""

This reverts commit 979c5023d3f0656cf51bd645936f52acd62b0333.

The underlying issue has been fixed in https://reviews.llvm.org/D83719.

Added: 
    

Modified: 
    compiler-rt/test/lit.common.cfg.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py
index 98a2f3c03e60..7c98c387c870 100644
--- a/compiler-rt/test/lit.common.cfg.py
+++ b/compiler-rt/test/lit.common.cfg.py
@@ -67,6 +67,8 @@
     # to link. In r19 and later we just use the default which is libc++.
     config.cxx_mode_flags.append('-stdlib=libstdc++')
 
+config.environment = dict(os.environ)
+
 # Clear some environment variables that might affect Clang.
 possibly_dangerous_env_vars = ['ASAN_OPTIONS', 'DFSAN_OPTIONS', 'LSAN_OPTIONS',
                                'MSAN_OPTIONS', 'UBSAN_OPTIONS',


        


More information about the llvm-commits mailing list