[libcxxabi] Pass LIBCXXABI_SYSROOT and LIBCXXABI_GCC_TOOLCHAIN to lit
authorPetr Hosek <phosek@chromium.org>
Tue, 12 Dec 2017 01:20:37 +0000 (01:20 +0000)
committerPetr Hosek <phosek@chromium.org>
Tue, 12 Dec 2017 01:20:37 +0000 (01:20 +0000)
These are expected to be set by the shared lit scripts used from libc++.

Differential Revision: https://reviews.llvm.org/D40818

llvm-svn: 320445

libcxxabi/test/lit.site.cfg.in

index 0e40a29d8200631c250d5ae3d91040d936f1642b..a66c9e4698cd33df337ffd9be6f204761905b8d8 100644 (file)
@@ -20,6 +20,8 @@ config.enable_exceptions        = "@LIBCXXABI_ENABLE_EXCEPTIONS@"
 config.host_triple              = "@LLVM_HOST_TRIPLE@"
 config.target_triple            = "@TARGET_TRIPLE@"
 config.use_target               = len("@LIBCXXABI_TARGET_TRIPLE@") > 0
+config.sysroot                  = "@LIBCXXABI_SYSROOT@"
+config.gcc_toolchain            = "@LIBCXXABI_GCC_TOOLCHAIN@"
 config.cxx_ext_threads          = "@LIBCXXABI_BUILD_EXTERNAL_THREAD_LIBRARY@"
 
 # Let the main config do the real work.