File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ def find_shlibpath_var():
54
54
lit_config .warning ("unable to inject shared library path on '{}'" .format (
55
55
platform .system ()))
56
56
57
+ # Propagate LLDB_CAPTURE_REPRODUCER
58
+ if 'LLDB_CAPTURE_REPRODUCER' in os .environ :
59
+ config .environment ['LLDB_CAPTURE_REPRODUCER' ] = os .environ [
60
+ 'LLDB_CAPTURE_REPRODUCER' ]
61
+
57
62
# Clean the module caches in the test build directory. This is necessary in an
58
63
# incremental build whenever clang changes underneath, so doing it once per
59
64
# lit.py invocation is close enough.
Original file line number Diff line number Diff line change 1
1
# Enable crash reports for the reproducer tests.
2
- del config.environment[' LLVM_DISABLE_CRASH_REPORT' ]
3
- del config.environment[' LLDB_CAPTURE_REPRODUCER' ]
2
+ if ' LLVM_DISABLE_CRASH_REPORT' in config.environment:
3
+ del config.environment[' LLVM_DISABLE_CRASH_REPORT' ]
4
+
5
+ if ' LLDB_CAPTURE_REPRODUCER' in config.environment:
6
+ del config.environment[' LLDB_CAPTURE_REPRODUCER' ]
Original file line number Diff line number Diff line change 38
38
# test_exec_root: The root path where tests should be run.
39
39
config .test_exec_root = os .path .join (config .lldb_obj_root , 'test' )
40
40
41
+ # Propagate LLDB_CAPTURE_REPRODUCER
42
+ if 'LLDB_CAPTURE_REPRODUCER' in os .environ :
43
+ config .environment ['LLDB_CAPTURE_REPRODUCER' ] = os .environ [
44
+ 'LLDB_CAPTURE_REPRODUCER' ]
41
45
42
46
llvm_config .use_default_substitutions ()
43
47
toolchain .use_lldb_substitutions (config )
You can’t perform that action at this time.
0 commit comments