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.
2 parents a9c6da6 + 2c35bca commit 607c7c5Copy full SHA for 607c7c5
cmake/modules/AddSwift.cmake
@@ -965,6 +965,11 @@ function(add_swift_host_tool executable)
965
endif()
966
967
968
+ # Opt-out of OpenBSD BTCFI if instructed where it is enforced by default.
969
+ if(SWIFT_HOST_VARIANT_SDK STREQUAL "OPENBSD" AND SWIFT_HOST_VARIANT_ARCH STREQUAL "aarch64" AND NOT SWIFT_OPENBSD_BTCFI)
970
+ target_link_options(${executable} PRIVATE "LINKER:-z,nobtcfi")
971
+ endif()
972
+
973
if(SWIFT_BUILD_SWIFT_SYNTAX)
974
set(extra_relative_rpath "")
975
if(NOT "${ASHT_BOOTSTRAPPING}" STREQUAL "")
0 commit comments