[libcxx-commits] [PATCH] D136131: Fix libunwind CET build break
xiongji90 via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 17 22:57:04 PDT 2022
xiongji90 created this revision.
xiongji90 added reviewers: MaskRay, compnerd.
xiongji90 added a project: libunwind.
Herald added subscribers: libcxx-commits, StephenFan.
Herald added a reviewer: libunwind.
Herald added a project: All.
xiongji90 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
In https://reviews.llvm.org/D110005, LLVM runtime libraries unify names used by compiler flag check in cmake, we need to update LIBUNWIND_SUPPORTS_* flag used in libunwind cmake too.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136131
Files:
libunwind/CMakeLists.txt
Index: libunwind/CMakeLists.txt
===================================================================
--- libunwind/CMakeLists.txt
+++ libunwind/CMakeLists.txt
@@ -160,10 +160,10 @@
if (LIBUNWIND_ENABLE_CET)
add_compile_flags_if_supported(-fcf-protection=full)
add_compile_flags_if_supported(-mshstk)
- if (NOT LIBUNWIND_SUPPORTS_FCF_PROTECTION_EQ_FULL_FLAG)
+ if (NOT CXX_SUPPORTS_FCF_PROTECTION_EQ_FULL_FLAG)
message(SEND_ERROR "Compiler doesn't support CET -fcf-protection option!")
endif()
- if (NOT LIBUNWIND_SUPPORTS_MSHSTK_FLAG)
+ if (NOT CXX_SUPPORTS_MSHSTK_FLAG)
message(SEND_ERROR "Compiler doesn't support CET -mshstk option!")
endif()
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136131.468424.patch
Type: text/x-patch
Size: 681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221018/ff0181fb/attachment.bin>
More information about the libcxx-commits
mailing list