Skip to content

Commit 3d7888c

Browse files
committed
stdlib: Enable -requirement-machine-protocol-signatures=verify
Fixes rdar://problem/46313629.
1 parent 4b7b24c commit 3d7888c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,11 @@ function(_compile_swift_files
457457
list(APPEND swift_flags "-Xfrontend" "-sil-verify-all")
458458
endif()
459459

460+
# The standard library and overlays are built with -requirement-machine-protocol-signatures=verify.
461+
if(SWIFTFILE_IS_STDLIB)
462+
list(APPEND swift_flags "-Xfrontend" "-requirement-machine-protocol-signatures=verify")
463+
endif()
464+
460465
# The standard library and overlays are built resiliently when SWIFT_STDLIB_STABLE_ABI=On.
461466
if(SWIFTFILE_IS_STDLIB AND SWIFT_STDLIB_STABLE_ABI)
462467
list(APPEND swift_flags "-enable-library-evolution")

0 commit comments

Comments
 (0)