diff options
author | Louis Dionne <ldionne@apple.com> | 2018-12-06 20:09:15 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2018-12-06 20:09:15 +0000 |
commit | 73b98491457809f79c2bb4af0c49d07ecb349d87 (patch) | |
tree | b9c57f7105e252a8e6368a69b01102b09556470a /libcxx/utils | |
parent | ef4b600301e9b5c3cf07c0c5efa812fc08cf7131 (diff) | |
download | bcm5719-llvm-73b98491457809f79c2bb4af0c49d07ecb349d87.tar.gz bcm5719-llvm-73b98491457809f79c2bb4af0c49d07ecb349d87.zip |
[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.
llvm-svn: 348525
Diffstat (limited to 'libcxx/utils')
-rw-r--r-- | libcxx/utils/libcxx/test/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index bdedd513c87..25506852ec3 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -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) self.lit_config.note( "inferred use_system_cxx_lib as: %r" % self.use_system_cxx_lib) |