Skip to content

Commit 365fae9

Browse files
committed
[Build] Stop CMake from de-duplicating -Xfrontend options (take 2).
CMake has a misfeature wherein it tries to de-duplicate command line options. This caused it to omit an `-Xfrontend` option when using `add_pure_swift_host_library`. rdar://106547267
1 parent 67644dc commit 365fae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ function(add_pure_swift_host_library name)
209209
# Avoid introducing an implicit dependency on the string-processing library.
210210
if(SWIFT_SUPPORTS_DISABLE_IMPLICIT_STRING_PROCESSING_MODULE_IMPORT)
211211
target_compile_options(${name} PRIVATE
212-
$<$<COMPILE_LANGUAGE:Swift>:"SHELL:-Xfrontend -disable-implicit-string-processing-module-import">)
212+
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>")
213213
endif()
214214

215215
# Same for backtracing
216216
if (SWIFT_SUPPORTS_DISABLE_IMPLICIT_BACKTRACING_MODULE_IMPORT)
217217
target_compile_options(${name} PRIVATE
218-
$<$<COMPILE_LANGUAGE:Swift>:"SHELL:-Xfrontend -disable-implicit-backtracing-module-import">)
218+
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-backtracing-module-import>")
219219
endif()
220220

221221
# The compat56 library is not available in current toolchains. The stage-0

0 commit comments

Comments
 (0)