summaryrefslogtreecommitdiffstats
path: root/libcxx/utils
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-02-05 04:44:03 +0000
committerPetr Hosek <phosek@chromium.org>2019-02-05 04:44:03 +0000
commit3ad50fed488b52e93aee5ce5607055aa77207c14 (patch)
treede7a12269eb1959a2f349c5d556b70f915033fdd /libcxx/utils
parentd5e595b7a6168f22cba123ce7d66e3f69e5b7cb4 (diff)
downloadbcm5719-llvm-3ad50fed488b52e93aee5ce5607055aa77207c14.tar.gz
bcm5719-llvm-3ad50fed488b52e93aee5ce5607055aa77207c14.zip
[CMake] Update lit test configuration
There are several changes: - Don't stringify Pythonized bools (that's why we're Pythonizing them) - Support specifying target and sysroot via CMake variables - Use consistent spelling for --target, --sysroot, --gcc-toolchain llvm-svn: 353137
Diffstat (limited to 'libcxx/utils')
-rw-r--r--libcxx/utils/libcxx/test/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index aba1ada9064..a16bbdef5c4 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -547,10 +547,10 @@ class Configuration(object):
self.cxx.flags += ['-v']
sysroot = self.get_lit_conf('sysroot')
if sysroot:
- self.cxx.flags += ['--sysroot', sysroot]
+ self.cxx.flags += ['--sysroot=' + sysroot]
gcc_toolchain = self.get_lit_conf('gcc_toolchain')
if gcc_toolchain:
- self.cxx.flags += ['-gcc-toolchain', gcc_toolchain]
+ self.cxx.flags += ['--gcc-toolchain=' + gcc_toolchain]
# NOTE: the _DEBUG definition must preceed the triple check because for
# the Windows build of libc++, the forced inclusion of a header requires
# that _DEBUG is defined. Incorrect ordering will result in -target
@@ -559,8 +559,8 @@ class Configuration(object):
self.cxx.compile_flags += ['-D_DEBUG']
if self.use_target:
if not self.cxx.addFlagIfSupported(
- ['-target', self.config.target_triple]):
- self.lit_config.warning('use_target is true but -target is '\
+ ['--target=' + self.config.target_triple]):
+ self.lit_config.warning('use_target is true but --target is '\
'not supported by the compiler')
if self.use_deployment:
arch, name, version = self.config.deployment
OpenPOWER on IntegriCloud