From 3d9e6c42f8cc3c6897b558eacb9abd1055f5ccbe Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Tue, 17 Mar 2020 15:40:31 -0400 Subject: [PATCH] [libc++] Use env to set the tool's environment on Darwin --- libcxx/utils/libcxx/test/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index 215faf2368c9..e9a26949f00d 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -1043,7 +1043,7 @@ class Configuration(object): if self.target_info.is_darwin(): # Do not pass DYLD_LIBRARY_PATH to the compiler, linker, etc. as # these tools are not meant to exercise the just-built libraries. - tool_env += 'DYLD_LIBRARY_PATH="" ' + tool_env += 'env DYLD_LIBRARY_PATH="" ' sub = self.config.substitutions cxx_path = tool_env + pipes.quote(self.cxx.path)