[libcxx] r348525 - [libcxx] Always convert 'use_system_cxx_lib' to an absolute path

Louis Dionne ldionne at apple.com
Thu Dec 6 12:09:16 PST 2018

Author: ldionne
Date: Thu Dec  6 12:09:15 2018
New Revision: 348525

URL: http://llvm.org/viewvc/llvm-project?rev=348525&view=rev
[libcxx] Always convert 'use_system_cxx_lib' to an absolute path

Otherwise, some tests would fail when a relative path was passed,
because they'd use the relative path from a different directory
than the current working directory.


Modified: libcxx/trunk/utils/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/libcxx/test/config.py?rev=348525&r1=348524&r2=348525&view=diff
--- libcxx/trunk/utils/libcxx/test/config.py (original)
+++ libcxx/trunk/utils/libcxx/test/config.py Thu Dec  6 12:09:15 2018
@@ -307,6 +307,7 @@ class Configuration(object):
             self.use_system_cxx_lib = False
         elif self.use_system_cxx_lib:
             assert os.path.isdir(self.use_system_cxx_lib), "the specified use_system_cxx_lib parameter (%s) is not a valid directory" % self.use_system_cxx_lib
+            self.use_system_cxx_lib = os.path.abspath(self.use_system_cxx_lib)
             "inferred use_system_cxx_lib as: %r" % self.use_system_cxx_lib)

More information about the libcxx-commits mailing list