[libc++] Use env to set the tool's environment on Darwin

This commit is contained in:
Louis Dionne 2020-03-17 15:40:31 -04:00
parent 768ead0a6c
commit 3d9e6c42f8
1 changed files with 1 additions and 1 deletions

View 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)