2021-11-01 21:41:44 +01:00
|
|
|
diff -uNr llvm-project/libunwind/CMakeLists.txt llvm-project.mod/libunwind/CMakeLists.txt
|
2022-02-26 12:53:42 +01:00
|
|
|
--- llvm-project/libunwind/CMakeLists.txt 2022-02-24 01:38:33.000000000 +0800
|
|
|
|
+++ llvm-project.mod/libunwind/CMakeLists.txt 2022-02-26 20:33:34.373468611 +0800
|
|
|
|
@@ -222,6 +222,10 @@
|
2021-11-01 21:41:44 +01:00
|
|
|
add_compile_flags_if_supported(-Werror=return-type)
|
|
|
|
|
|
|
|
if (LIBUNWIND_ENABLE_CET)
|
|
|
|
+ if (NOT "libunwind" IN_LIST LLVM_ENABLE_RUNTIMES
|
|
|
|
+ AND "clang" IN_LIST LLVM_ENABLE_PROJECTS)
|
|
|
|
+ include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../clang/lib/Headers")
|
|
|
|
+ endif()
|
|
|
|
add_compile_flags_if_supported(-fcf-protection=full)
|
|
|
|
add_compile_flags_if_supported(-mshstk)
|
|
|
|
if (NOT LIBUNWIND_SUPPORTS_FCF_PROTECTION_EQ_FULL_FLAG)
|