[libunwind] 09dcb93 - [CMake] Fix LIBUNWIND_ENABLE_CET build after D110005

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 18 15:00:14 PDT 2022


Author: jinge90
Date: 2022-10-18T15:00:09-07:00
New Revision: 09dcb933eff331749842d86b439e1a4fed76cb20

URL: https://github.com/llvm/llvm-project/commit/09dcb933eff331749842d86b439e1a4fed76cb20
DIFF: https://github.com/llvm/llvm-project/commit/09dcb933eff331749842d86b439e1a4fed76cb20.diff

LOG: [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

Added: 
    

Modified: 
    libunwind/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libunwind/CMakeLists.txt b/libunwind/CMakeLists.txt
index 7ee77e9c75c2f..5c547883f9927 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()


        


More information about the cfe-commits mailing list