[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

llvm-svn: 319830
This commit is contained in:
Petr Hosek 2017-12-05 20:48:05 +00:00
parent b69dae42e3
commit 27d887878d

View File

@ -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)