diff options
author | Petr Hosek <phosek@chromium.org> | 2017-12-05 20:48:05 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-12-05 20:48:05 +0000 |
commit | 7d4a945acea6662fdd75fa80012273e2ac4fa75b (patch) | |
tree | d74bedc5d8d43e105ceb290f40fc51bd151a4e1e | |
parent | 9e8354cbe0f390151d345376be12061bfbcd57c9 (diff) | |
download | libunwind_llvm-7d4a945acea6662fdd75fa80012273e2ac4fa75b.tar.gz |
[libunwind][CMake] Set TARGET_TRIPLE if LIBUNWND_TARGET_TRIPLE is set
This follows the setup used by other runtimes and is expected by
the lit configuration.
Differential Revision: https://reviews.llvm.org/D40820
git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@319830 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f8ede54..b28e4d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,6 +211,10 @@ add_target_flags_if(LIBUNWIND_GCC_TOOLCHAIN add_target_flags_if(LIBUNWIND_SYSROOT "--sysroot=${LIBUNWIND_SYSROOT}") +if (LIBUNWIND_TARGET_TRIPLE) + set(TARGET_TRIPLE "${LIBUNWIND_TARGET_TRIPLE}") +endif() + # Configure compiler. include(config-ix) |