diff options
author | Sergej Jaskiewicz <jaskiewiczs@icloud.com> | 2019-12-06 17:26:35 +0300 |
---|---|---|
committer | Sergej Jaskiewicz <jaskiewiczs@icloud.com> | 2019-12-11 04:27:04 +0300 |
commit | 57fc8ecdbaa7fbb1a13907ca3f7a3cb9f9459d27 (patch) | |
tree | f0ad5032122e8d49f9254af4b6210039ca8b4e4c /llvm/test/tools/llvm-ar | |
parent | bc24014b9765a454cb5214f4871451a41ffb7d29 (diff) | |
download | bcm5719-llvm-57fc8ecdbaa7fbb1a13907ca3f7a3cb9f9459d27.tar.gz bcm5719-llvm-57fc8ecdbaa7fbb1a13907ca3f7a3cb9f9459d27.zip |
Reland "Enable `-funwind-tables` flag when building libunwind"
Summary:
Relands https://reviews.llvm.org/D70815.
The original commit set `CMAKE_TRY_COMPILE_TARGET_TYPE` to
`STATIC_LIBRARY` globally in libunwind/CMakeLists.txt, which effectively
disabled the linking step in CMake checks.
This broke some builds (see 938c70b86c7d2165f8c28d5700e9c1ac1263307e).
Here we set CMAKE_TRY_COMPILE_TARGET_TYPE to
STATIC_LIBRARY only when checking for presence of the `-funwind-tables`
flag, and then set it back to the original value so it doesn't affect
other checks.
Reviewers: mstorsjo, jfb
Subscribers: mgorny, christof, libcxx-commits
Tags: #libc
Differential Revision: https://reviews.llvm.org/D71117
Diffstat (limited to 'llvm/test/tools/llvm-ar')
0 files changed, 0 insertions, 0 deletions