From: Louis Dionne Date: Fri, 15 May 2020 17:45:45 +0000 (-0400) Subject: [libc++] Remove workaround for DYLD_LIBRARY_PATH being passed to the compiler X-Git-Tag: llvmorg-12-init~5937 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93e8164546c384f91bfbfa27852e1f6d63a73809;p=platform%2Fupstream%2Fllvm.git [libc++] Remove workaround for DYLD_LIBRARY_PATH being passed to the compiler Since we're using the new testing format, DYLD_LIBRARY_PATH is not passed to the compiler -- it's only passed to the programs we run as an argument to the %{exec} substitution. --- diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index 86e59ef..6456620 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -740,15 +740,9 @@ class Configuration(object): self.cxx.useModules() def configure_substitutions(self): - tool_env = '' - 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 += 'env DYLD_LIBRARY_PATH=""' - sub = self.config.substitutions # Configure compiler substitutions - sub.append(('%{cxx}', '{} {}'.format(tool_env, pipes.quote(self.cxx.path)))) + sub.append(('%{cxx}', pipes.quote(self.cxx.path))) sub.append(('%{libcxx_src_root}', self.libcxx_src_root)) # Configure flags substitutions flags = self.cxx.flags + (self.cxx.modules_flags if self.cxx.use_modules else [])