[PATCH] D40820: [libunwind][CMake] Set TARGET_TRIPLE if LIBUNWND_TARGET_TRIPLE is set

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 4 17:18:58 PST 2017


phosek created this revision.
Herald added a subscriber: mgorny.

This follows the setup used by other runtimes and is expected by the lit configuration.


Repository:
  rL LLVM

https://reviews.llvm.org/D40820

Files:
  CMakeLists.txt


Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -211,6 +211,10 @@
 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)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40820.125458.patch
Type: text/x-patch
Size: 372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171205/1ffa02d5/attachment.bin>


More information about the cfe-commits mailing list