[libc++] Use env to set the tool's environment on Darwin
authorLouis Dionne <ldionne@apple.com>
Tue, 17 Mar 2020 19:40:31 +0000 (15:40 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 17 Mar 2020 19:40:51 +0000 (15:40 -0400)
libcxx/utils/libcxx/test/config.py

index 215faf2..e9a2694 100644 (file)
@@ -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)