[PATCH] D20889: [libunwind] Allow target flags to affect CMake configuration tests
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 1 16:38:56 PDT 2016
EricWF created this revision.
EricWF added reviewers: jroelofs, danalbert, compnerd, bcraig, rmaprath.
EricWF added a subscriber: cfe-commits.
This patch changes the libunwind CMake so that it adds certain target flags like '-m32' or '--gcc-toolchain' before including config-ix.cmake.
Since these flags can affect things like check_library_exists([...]) they needed to be added before the tests are performed.
Additionally this patch adds LIBUNWIND_BUILD_32_BITS which defaults to LLVM_BUILD_32_BITS.
This patch fixes:
https://llvm.org/bugs/show_bug.cgi?id=27950
https://llvm.org/bugs/show_bug.cgi?id=27959
http://reviews.llvm.org/D20889
Files:
CMakeLists.txt
src/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20889.59303.patch
Type: text/x-patch
Size: 4430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160601/26af23f7/attachment-0001.bin>
More information about the cfe-commits
mailing list