Skip to content

Commit a6d5ef6

Browse files
committed
Temporarily turn on -Werror StrictMemorySafety.
1 parent 72401ca commit a6d5ef6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,9 @@ function(_compile_swift_files
643643

644644
list(APPEND swift_flags "-enable-upcoming-feature" "MemberImportVisibility")
645645

646+
# Require all StrictMemorySafety diagnostics to be addressed.
647+
list(APPEND swift_flags "-Werror" "StrictMemorySafety")
648+
646649
if (SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE)
647650
list(APPEND swift_flags "-strict-concurrency=complete")
648651
endif()

0 commit comments

Comments
 (0)