This is an archive of the discontinued LLVM Phabricator instance.

[libunwind] Allow target flags to affect CMake configuration tests
ClosedPublic

Authored by EricWF on Jun 1 2016, 4:38 PM.

Details

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

Diff Detail

Event Timeline

EricWF updated this revision to Diff 59303.Jun 1 2016, 4:38 PM
EricWF retitled this revision from to [libunwind] Allow target flags to affect CMake configuration tests.
EricWF updated this object.
EricWF added a subscriber: cfe-commits.
EricWF updated this revision to Diff 59307.Jun 1 2016, 4:42 PM

Add missing declaration for "LIBUNWIND_TARGET_TRIPLE".

compnerd accepted this revision.Jun 1 2016, 5:51 PM
compnerd edited edge metadata.
This revision is now accepted and ready to land.Jun 1 2016, 5:51 PM
EricWF closed this revision.Jun 1 2016, 6:08 PM