llvm-capstone/libunwind
Eric Fiselier 0447bde044 [libunwind] Allow target flags to affect CMake configuration tests
Summary:
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

Reviewers: jroelofs, danalbert, bcraig, rmaprath, compnerd

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D20889

llvm-svn: 271458
2016-06-02 01:02:10 +00:00
..
cmake Replace cmake check for printf with a check for fopen. 2015-12-10 00:47:08 +00:00
include Introduce a native-only unwinder build. 2016-05-25 12:36:34 +00:00
src [libunwind] Allow target flags to affect CMake configuration tests 2016-06-02 01:02:10 +00:00
test Fix unw_getcontext() return value on AArch64. 2015-06-25 15:12:46 +00:00
.arcconfig Add ARC config 2015-05-09 20:56:15 +00:00
.clang-format unwind: add a .clang-format 2015-05-07 19:50:18 +00:00
CMakeLists.txt [libunwind] Allow target flags to affect CMake configuration tests 2016-06-02 01:02:10 +00:00