[PATCH] D122869: [lit] Fix setup of sanitizer environment

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 1 12:51:55 PDT 2022


vitalybuka added inline comments.


================
Comment at: clang/test/Unit/lit.cfg.py:33
 
-# Propagate path to symbolizer for ASan/MSan.
-for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
-    if symbolizer in os.environ:
-        config.environment[symbolizer] = os.environ[symbolizer]
+# Propagate sanitizer options.
+for var in [
----------------
ychen wrote:
> How about initializing an `LLVMConfig` instance instead of replicating this for each project? Although `LLVMConfig` does some extra handling, I guess it shouldn't hurt anything.
This is /Unit/, not a regular lit test, maybe it will work, but it should be a different patch.
I can try as followup?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122869/new/

https://reviews.llvm.org/D122869



More information about the llvm-commits mailing list