We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0120f commit 001b1cfCopy full SHA for 001b1cf
CMakeLists.txt
@@ -506,7 +506,11 @@ if(ENABLE_HARDENING)
506
endif()
507
508
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
509
- try_append_cxx_flags("-mbranch-protection=bti" TARGET hardening_interface SKIP_LINK)
+ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
510
+ try_append_cxx_flags("-mbranch-protection=bti" TARGET hardening_interface SKIP_LINK)
511
+ else()
512
+ try_append_cxx_flags("-mbranch-protection=standard" TARGET hardening_interface SKIP_LINK)
513
+ endif()
514
515
516
try_append_linker_flag("-Wl,--enable-reloc-section" TARGET hardening_interface)
0 commit comments