Skip to content

Commit 3bb8cfb

Browse files
authored
Merge pull request #80251 from compnerd/workaround
Runtimes: add additional interface flags
2 parents c2c991c + db51658 commit 3bb8cfb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Runtimes/Core/core/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,17 @@ target_compile_options(swiftCore PRIVATE
294294
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -group-info-path -Xfrontend ${CMAKE_CURRENT_SOURCE_DIR}/GroupInfo.json>"
295295
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-objc-attr-requires-foundation-module>"
296296
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -require-explicit-availability=ignore>")
297-
298297
if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
299298
# Using these in MinSizeRel would result in a 15% increase in the binary size
300299
target_compile_options(swiftCore PRIVATE
301300
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xllvm -sil-inline-generics>"
302301
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xllvm -sil-partial-specialization>")
303302
endif()
304303

304+
# FIXME: Why is this not implicitly in the interface flags?
305+
target_include_directories(swiftCore INTERFACE
306+
"$<$<COMPILE_LANGUAGE:Swift>:$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${SwiftCore_INSTALL_SWIFTMODULEDIR}>>")
307+
305308
target_link_libraries(swiftCore
306309
PRIVATE
307310
swiftRuntime

0 commit comments

Comments
 (0)