Skip to content

Commit ba5ccc4

Browse files
committed
Runtimes: generate optimization record on Darwin
Addresses rdar://143152066
1 parent 4306b57 commit ba5ccc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Runtimes/Core/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ add_compile_options(
171171
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature Extern>"
172172
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature ValueGenerics>"
173173
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature AddressableParameters>"
174+
# TODO: we should reevaluate if it still makes sense to restrict this
175+
# to Darwin, https://github.com/swiftlang/swift/issues/79279
176+
"$<$<AND:$<PLATFORM_ID:Darwin>,$<COMPILE_LANGUAGE:Swift>>:-save-optimization-record=bitstream>"
174177
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -enable-experimental-concise-pound-file>"
175178
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -enable-lexical-lifetimes=false>"
176179
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-concurrency-module-import>"

0 commit comments

Comments
 (0)