Skip to content

Commit 834ade5

Browse files
committed
cmake: avoiding generating ABI baseline files when building stdlib
We have a regression test checked in the compiler repository to detect ABI breakges as the stdlib evolves, therefore we don't need to generate these side car files for ABI checking purposes that could be potentially done externally. Related to: rdar://118465899
1 parent 918bd3d commit 834ade5

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
@@ -583,6 +583,11 @@ function(_compile_swift_files
583583
list(APPEND swift_flags "-swift-version" "5")
584584
endif()
585585

586+
# Avoiding emiting ABI descriptor files while building stdlib.
587+
if (SWIFTFILE_IS_STDLIB)
588+
list(APPEND swift_flags "-Xfrontend" "-empty-abi-descriptor")
589+
endif()
590+
586591
if(SWIFTFILE_IS_SDK_OVERLAY)
587592
list(APPEND swift_flags "-autolink-force-load")
588593
endif()

0 commit comments

Comments
 (0)