diff options
author | jinge90 <ge.jin@intel.com> | 2022-10-18 15:00:09 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-10-18 15:00:09 -0700 |
commit | 09dcb933eff331749842d86b439e1a4fed76cb20 (patch) | |
tree | f6063d2c2f838cc1780d566a367c60d49b47e2b2 /libunwind | |
parent | 037669de8bdff42fc17b72460bf8784403c8d055 (diff) | |
download | llvm-09dcb933eff331749842d86b439e1a4fed76cb20.zip llvm-09dcb933eff331749842d86b439e1a4fed76cb20.tar.gz llvm-09dcb933eff331749842d86b439e1a4fed76cb20.tar.bz2 |
[CMake] Fix LIBUNWIND_ENABLE_CET build after D110005
D110005 renamed LIBUNWIND_SUPPORTS_* to CXX_SUPPORTS_*.
Reviewed By: MaskRay, #libunwind, mstorsjo
Differential Revision: https://reviews.llvm.org/D136131
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt index 7ee77e9..5c54788 100644 --- a/libunwind/CMakeLists.txt +++ b/libunwind/CMakeLists.txt @@ -160,10 +160,10 @@ add_compile_flags_if_supported(-Werror=return-type) 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() |