[llvm] dc00aba - [llvm] Add env prefix to environment variable
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 15 06:34:19 PDT 2025
Author: Aiden Grossman
Date: 2025-09-15T13:33:07Z
New Revision: dc00abac0e79359a16d617f1c36b5a628fa5b8a1
URL: https://github.com/llvm/llvm-project/commit/dc00abac0e79359a16d617f1c36b5a628fa5b8a1
DIFF: https://github.com/llvm/llvm-project/commit/dc00abac0e79359a16d617f1c36b5a628fa5b8a1.diff
LOG: [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.
Added:
Modified:
llvm/test/lit.cfg.py
Removed:
################################################################################
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index e8861e29be707..dd3f947b186b3 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -156,7 +156,7 @@ def get_asan_rtlib():
ld64_cmd = config.ld64_executable
asan_rtlib = get_asan_rtlib()
if asan_rtlib:
- ld64_cmd = "DYLD_INSERT_LIBRARIES={} {}".format(asan_rtlib, ld64_cmd)
+ ld64_cmd = "env DYLD_INSERT_LIBRARIES={} {}".format(asan_rtlib, ld64_cmd)
if config.osx_sysroot:
ld64_cmd = "{} -syslibroot {}".format(ld64_cmd, config.osx_sysroot)
More information about the llvm-commits
mailing list