[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
Tue Dec 5 12:48:39 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL319830: [libunwind][CMake] Set TARGET_TRIPLE if LIBUNWND_TARGET_TRIPLE is set (authored by phosek).

Changed prior to commit:
  https://reviews.llvm.org/D40820?vs=125458&id=125594#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D40820

Files:
  libunwind/trunk/CMakeLists.txt


Index: libunwind/trunk/CMakeLists.txt
===================================================================
--- libunwind/trunk/CMakeLists.txt
+++ libunwind/trunk/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.125594.patch
Type: text/x-patch
Size: 420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171205/43d9dacb/attachment.bin>


More information about the cfe-commits mailing list