Revert "[clang][lit] Make LIT aware of env CLANG_CRASH_DIAGNOSTICS_DIR."
authorFrancesco Petrogalli <francesco.petrogalli@apple.com>
Wed, 5 Apr 2023 18:53:20 +0000 (20:53 +0200)
committerFrancesco Petrogalli <francesco.petrogalli@apple.com>
Wed, 5 Apr 2023 18:55:08 +0000 (20:55 +0200)
This reverts commit 029212617ca8bdedd949d17bf2d33750605ea607.

Reverting because of failures when setting
`CLANG_CRASH_DIAGNOSTICS_DIR` before invoking `ninja check-clang`.

clang/test/lit.cfg.py

index 7c5a55c..e9bfaf2 100644 (file)
@@ -284,10 +284,6 @@ if 'system-aix' in config.available_features:
         config.substitutions.append(('llvm-nm', 'env OBJECT_MODE=any llvm-nm'))
         config.substitutions.append(('llvm-ar', 'env OBJECT_MODE=any llvm-ar'))
 
-# Pass the crash diagnostic dir set in the os environment to LIT.
-if 'CLANG_CRASH_DIAGNOSTICS_DIR' in os.environ:
-    config.environment['CLANG_CRASH_DIAGNOSTICS_DIR'] = os.environ['CLANG_CRASH_DIAGNOSTICS_DIR']
-
 # It is not realistically possible to account for all options that could
 # possibly be present in system and user configuration files, so disable
 # default configs for the test runs.