Skip to content

Commit 2ea7cd2

Browse files
committed
[cmake] Generate opt-remark bitstream files for the stdlib.
1 parent a907a15 commit 2ea7cd2

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
@@ -91,6 +91,9 @@ function(handle_swift_sources
9191
# FIXME: We shouldn't /have/ to build things in a single process.
9292
# <rdar://problem/15972329>
9393
list(APPEND swift_compile_flags "-whole-module-optimization")
94+
if(sdk IN_LIST SWIFT_APPLE_PLATFORMS OR sdk STREQUAL "MACCATALYST")
95+
list(APPEND swift_compile_flags "-save-optimization-record=bitstream")
96+
endif()
9497

9598
_compile_swift_files(
9699
dependency_target

0 commit comments

Comments
 (0)