[PATCH] D21434: [CMake] Add LLVM_BUILD_32_BITS to LLVMConfig.cmake

John Brawn via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 07:08:49 PDT 2016


john.brawn created this revision.
john.brawn added reviewers: beanz, chapuni.
john.brawn added a subscriber: llvm-commits.
john.brawn set the repository for this revision to rL LLVM.

Previously out-of-tree passes could detect if LLVM was built with LLVM_BUILD_32_BITS by looking for -m32 in LLVM_DEFINITIONS, but as of r271871 it no longer appears there. Resolve this by instead emitting LLVM_BUILD_32_BITS in LLVMConfig so it can be checked for directly.


Repository:
  rL LLVM

http://reviews.llvm.org/D21434

Files:
  cmake/modules/LLVMConfig.cmake.in

Index: cmake/modules/LLVMConfig.cmake.in
===================================================================
--- cmake/modules/LLVMConfig.cmake.in
+++ cmake/modules/LLVMConfig.cmake.in
@@ -39,6 +39,8 @@
 
 set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
 
+set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
+
 set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
 set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
 set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21434.60969.patch
Type: text/x-patch
Size: 455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160616/cfe6841a/attachment.bin>


More information about the llvm-commits mailing list