Skip to content

Commit 7924cc1

Browse files
committed
Runtimes: use -enable-experimental-concise-pound-file only for Core.
As per #32700, this is only meant for `Swift.swiftinterface`. Addresses rdar://143152066
1 parent ba5ccc4 commit 7924cc1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Runtimes/Core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ add_compile_options(
174174
# TODO: we should reevaluate if it still makes sense to restrict this
175175
# to Darwin, https://github.com/swiftlang/swift/issues/79279
176176
"$<$<AND:$<PLATFORM_ID:Darwin>,$<COMPILE_LANGUAGE:Swift>>:-save-optimization-record=bitstream>"
177-
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -enable-experimental-concise-pound-file>"
178177
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -enable-lexical-lifetimes=false>"
179178
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-concurrency-module-import>"
180179
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>"

Runtimes/Core/core/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ if(APPLE AND BUILD_SHARED_LIBS)
274274
endif()
275275

276276
target_compile_options(swiftCore PRIVATE
277+
# STAGING: Temporarily avoids having to write #fileID in Swift.swiftinterface.
278+
# see also 327ea8bce2d1107a847d444651b19ca6a2901c9e
279+
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -enable-experimental-concise-pound-file>"
277280
$<$<COMPILE_LANGUAGE:Swift>:-parse-stdlib>
278281
$<$<COMPILE_LANGUAGE:Swift>:-nostdimport>
279282
$<$<COMPILE_LANGUAGE:Swift>:-explicit-module-build>

0 commit comments

Comments
 (0)