Skip to content

Commit dc00aba

Browse files
[llvm] Add env prefix to environment variable
This substitution is used in a few tests in certain build configurations (seems like only a 2-stage build on Darwin with Asan enabled on a previous stage). This needs an env prefix now that we have enabled the internal shell by default, or the tests end up failing.
1 parent 4452fbd commit dc00aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/test/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def get_asan_rtlib():
156156
ld64_cmd = config.ld64_executable
157157
asan_rtlib = get_asan_rtlib()
158158
if asan_rtlib:
159-
ld64_cmd = "DYLD_INSERT_LIBRARIES={} {}".format(asan_rtlib, ld64_cmd)
159+
ld64_cmd = "env DYLD_INSERT_LIBRARIES={} {}".format(asan_rtlib, ld64_cmd)
160160
if config.osx_sysroot:
161161
ld64_cmd = "{} -syslibroot {}".format(ld64_cmd, config.osx_sysroot)
162162

0 commit comments

Comments
 (0)