[libc++] Remove workaround for DYLD_LIBRARY_PATH being passed to the compiler
authorLouis Dionne <ldionne@apple.com>
Fri, 15 May 2020 17:45:45 +0000 (13:45 -0400)
committerLouis Dionne <ldionne@apple.com>
Fri, 15 May 2020 17:53:45 +0000 (13:53 -0400)
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.

libcxx/utils/libcxx/test/config.py

index 86e59ef..6456620 100644 (file)
@@ -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 [])