File tree 3 files changed +28
-14
lines changed
3 files changed +28
-14
lines changed Original file line number Diff line number Diff line change @@ -129,11 +129,6 @@ def delete_module_cache(path):
129
129
lit_config .warning ("unable to inject shared library path on '{}'" .format (
130
130
platform .system ()))
131
131
132
- # Propagate LLDB_CAPTURE_REPRODUCER
133
- if 'LLDB_CAPTURE_REPRODUCER' in os .environ :
134
- config .environment ['LLDB_CAPTURE_REPRODUCER' ] = os .environ [
135
- 'LLDB_CAPTURE_REPRODUCER' ]
136
-
137
132
# Support running the test suite under the lldb-repro wrapper. This makes it
138
133
# possible to capture a test suite run and then rerun all the test from the
139
134
# just captured reproducer.
@@ -259,3 +254,12 @@ def delete_module_cache(path):
259
254
if 'FREEBSD_LEGACY_PLUGIN' in os .environ :
260
255
config .environment ['FREEBSD_LEGACY_PLUGIN' ] = os .environ [
261
256
'FREEBSD_LEGACY_PLUGIN' ]
257
+
258
+ # Propagate LLDB_CAPTURE_REPRODUCER
259
+ if 'LLDB_CAPTURE_REPRODUCER' in os .environ :
260
+ config .environment ['LLDB_CAPTURE_REPRODUCER' ] = os .environ [
261
+ 'LLDB_CAPTURE_REPRODUCER' ]
262
+
263
+ # Propagate XDG_CACHE_HOME
264
+ if 'XDG_CACHE_HOME' in os .environ :
265
+ config .environment ['XDG_CACHE_HOME' ] = os .environ ['XDG_CACHE_HOME' ]
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 reproducer environment vars.
42
- if 'LLDB_CAPTURE_REPRODUCER' in os .environ :
43
- config .environment ['LLDB_CAPTURE_REPRODUCER' ] = os .environ [
44
- 'LLDB_CAPTURE_REPRODUCER' ]
41
+ # Propagate environment vars.
42
+ llvm_config .with_system_environment ([
43
+ 'FREEBSD_LEGACY_PLUGIN' ,
44
+ 'HOME' ,
45
+ 'LLDB_CAPTURE_REPRODUCER' ,
46
+ 'TEMP' ,
47
+ 'TMP' ,
48
+ 'XDG_CACHE_HOME' ,
49
+ ])
45
50
46
51
# Support running the test suite under the lldb-repro wrapper. This makes it
47
52
# possible to capture a test suite run and then rerun all the test from the
@@ -136,6 +141,3 @@ def calculate_arch_features(arch_string):
136
141
can_set_dbregs = False
137
142
if can_set_dbregs :
138
143
config .available_features .add ('dbregs-set' )
139
-
140
- # pass control variable through
141
- llvm_config .with_system_environment ('FREEBSD_LEGACY_PLUGIN' )
Original file line number Diff line number Diff line change 23
23
# it needs to be able to find it at runtime. This is fine if Python is on your
24
24
# system PATH, but if it's not, then this unit test executable will fail to run.
25
25
# We can solve this by forcing the Python directory onto the system path here.
26
- llvm_config .with_system_environment ('PATH' )
27
- llvm_config .with_environment ('PATH' , os .path .dirname (sys .executable ), append_path = True )
26
+ llvm_config .with_system_environment ([
27
+ 'HOME' ,
28
+ 'PATH' ,
29
+ 'TEMP' ,
30
+ 'TMP' ,
31
+ 'XDG_CACHE_HOME' ,
32
+ ])
33
+ llvm_config .with_environment ('PATH' ,
34
+ os .path .dirname (sys .executable ),
35
+ append_path = True )
28
36
29
37
# testFormat: The test format to use to interpret tests.
30
38
config .test_format = lit .formats .GoogleTest (config .llvm_build_mode , 'Tests' )
You can’t perform that action at this time.
0 commit comments