[PATCH] D20881: [libunwind] Add LIBUNWIND_BUILD_32_BITS CMake option.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 1 15:24:12 PDT 2016
EricWF created this revision.
EricWF added reviewers: rmaprath, compnerd, jroelofs.
EricWF added a subscriber: cfe-commits.
This option defaults to LLVM_BUILD_32_BITS but it allows it to be modified separate from the rest of LLVM.
This is intended to help fix PR27959.
(https://llvm.org/bugs/show_bug.cgi?id=27959)
http://reviews.llvm.org/D20881
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -99,6 +99,7 @@
#===============================================================================
# Define options.
+option(LIBUNWIND_BUILD_32_BITS "Build 32 bit libunwind" ${LLVM_BUILD_32_BITS})
option(LIBUNWIND_ENABLE_ASSERTIONS "Enable assertions independent of build mode." ON)
option(LIBUNWIND_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
option(LIBUNWIND_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF)
@@ -213,6 +214,8 @@
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif ()
+append_if(LIBUNWIND_COMPILE_FLAGS LIBUNWIND_BUILD_32_BITS "-m32")
+append_if(LIBUNWIND_LINK_FLAGS LIBUNWIND_BUILD_32_BITS "-m32")
append_if(LIBUNWIND_COMPILE_FLAGS LIBUNWIND_TARGET_TRIPLE
"-target ${LIBUNWIND_TARGET_TRIPLE}")
append_if(LIBUNWIND_COMPILE_FLAGS LIBUNWIND_GCC_TOOLCHAIN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20881.59288.patch
Type: text/x-patch
Size: 943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160601/1a212e86/attachment.bin>
More information about the cfe-commits
mailing list