fpetrogalli created this revision.
fpetrogalli added a reviewer: mizvekov.
Herald added a project: All.
fpetrogalli requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This is useful for retriving crash reports of LIT runs when the
temporary folder is not accessible.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147209
Files:
clang/test/lit.cfg.py
Index: clang/test/lit.cfg.py
===================================================================
--- clang/test/lit.cfg.py
+++ clang/test/lit.cfg.py
@@ -284,6 +284,10 @@
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.
Index: clang/test/lit.cfg.py
===================================================================
--- clang/test/lit.cfg.py
+++ clang/test/lit.cfg.py
@@ -284,6 +284,10 @@
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.
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits