diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2021-05-07 17:15:36 +0300 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2021-05-08 18:10:53 +0300 |
commit | 74d096e5587969e0d1458ea2175515f6f02e7df3 (patch) | |
tree | c787f3237364296c702a544731cf21186af088eb /libunwind/test | |
parent | 9610a2d753dbba385e8c2c005e2497e3add99472 (diff) |
[libc++] Move handling of the target triple to the DSL
This fixes a long standing issue where the triple is not always set
consistently in all configurations. This change also moves the
back-deployment Lit features to using the proper target triple
instead of using something ad-hoc.
This will be necessary for using from scratch Lit configuration files
in both normal testing and back-deployment testing.
Differential Revision: https://reviews.llvm.org/D102012
Diffstat (limited to 'libunwind/test')
-rw-r--r-- | libunwind/test/lit.site.cfg.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libunwind/test/lit.site.cfg.in b/libunwind/test/lit.site.cfg.in index cb2e087fad73..14fabce48641 100644 --- a/libunwind/test/lit.site.cfg.in +++ b/libunwind/test/lit.site.cfg.in @@ -24,7 +24,8 @@ config.libunwind_shared = @LIBUNWIND_ENABLE_SHARED@ config.enable_shared = @LIBCXX_ENABLE_SHARED@ config.arm_ehabi = @LIBUNWIND_USES_ARM_EHABI@ config.host_triple = "@LLVM_HOST_TRIPLE@" -config.target_triple = "@TARGET_TRIPLE@" +if "@TARGET_TRIPLE@": + config.target_triple = "@TARGET_TRIPLE@" config.sysroot = "@LIBUNWIND_SYSROOT@" config.gcc_toolchain = "@LIBUNWIND_GCC_TOOLCHAIN@" config.cxx_ext_threads = @LIBUNWIND_BUILD_EXTERNAL_THREAD_LIBRARY@ |