Skip to content

Commit be2f931

Browse files
committed
Runtimes: disable ObjC interop if not enabled
Disable the objc interop support explicitly if objc interop is disabled in the toolchain build.
1 parent eb6933b commit be2f931

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Runtimes/Core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ add_compile_options(
127127
$<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>
128128
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>
129129
$<$<COMPILE_LANGUAGE:CXX>:-funwind-tables>
130+
"$<$<AND:$<COMPILE_LANGUAGE:Swift>,$<NOT:$<BOOL:${SwiftCore_ENABLE_OBJC_INTEROP}>>>:SHELL:-Xfrontend -disable-objc-interop>"
130131
"$<$<AND:$<COMPILE_LANGUAGE:Swift>,$<PLATFORM_ID:Windows>>:SHELL:-Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules>"
131132
$<$<AND:$<COMPILE_LANGUAGE:Swift>,$<BOOL:${SwiftCore_ENABLE_LIBRARY_EVOLUTION}>>:-enable-library-evolution>)
132133

0 commit comments

Comments
 (0)