mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user