commit | cbf9923c6ee6481db10d1c10939b1174d620e3e9 | [log] [tgz] |
---|---|---|
author | Shoaib Meenai <smeenai@fb.com> | Thu Aug 24 15:49:54 2023 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Aug 28 17:41:11 2023 -0700 |
tree | 7dba0a05ce0c106212f9a16fa645c1840ba5b16b | |
parent | 23f296e81e49d878778fb7608398f1c68f23a812 [diff] |
[libcxxabi] Automatically use static libunwind when required If we attempt to use unwind_shared when LIBUNWIND_ENABLE_SHARED is OFF, we'll get link errors. LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY avoids that, but it seems redundant to have to specify it manually. Automatically switch libunwind statically when its shared build is disabled, which also matches compiler-rt [1]. [1] https://github.com/llvm/llvm-project/blob/71bfec762bd970e7834f58c158ddc15f93402d7a/compiler-rt/CMakeLists.txt#L238-L240 Reviewed By: #libc_abi, phosek Differential Revision: https://reviews.llvm.org/D158789 GitOrigin-RevId: 3789c236bbda9dda6e927cb0fff9da67f1eebc70