[libunwind] Pass LIBUNWIND_SYSROOT and LIBUNWIND_GCC_TOOLCHAIN to lit
authorPetr Hosek <phosek@chromium.org>
Tue, 5 Dec 2017 20:22:10 +0000 (20:22 +0000)
committerPetr Hosek <phosek@chromium.org>
Tue, 5 Dec 2017 20:22:10 +0000 (20:22 +0000)
These are expected to be set by the shared lit scripts used from
libc++.

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

llvm-svn: 319823

libunwind/test/lit.site.cfg.in

index 3ed0c74..888b960 100644 (file)
@@ -19,6 +19,8 @@ config.enable_exceptions        = "@LIBUNWIND_ENABLE_EXCEPTIONS@"
 config.host_triple              = "@LLVM_HOST_TRIPLE@"
 config.target_triple            = "@TARGET_TRIPLE@"
 config.use_target               = len("@LIBUNWIND_TARGET_TRIPLE@") > 0
+config.sysroot                  = "@LIBUNWIND_SYSROOT@"
+config.gcc_toolchain            = "@LIBUNWIND_GCC_TOOLCHAIN@"
 config.cxx_ext_threads          = "@LIBUNWIND_BUILD_EXTERNAL_THREAD_LIBRARY@"
 
 # Let the main config do the real work.