Skip to content

Commit f5487e4

Browse files
committed
Core: add missing flags for Windows
Windows core modules require the `-fbuiltin-headers-in-system-modules` flag to be passed to the clang importer. Adjust the build flags for the platform.
1 parent b748546 commit f5487e4

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
@@ -125,6 +125,7 @@ add_compile_options(
125125
$<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>
126126
$<$<COMPILE_LANGUAGE:CXX>:-fno-exceptions>
127127
$<$<COMPILE_LANGUAGE:CXX>:-funwind-tables>
128+
"$<$<AND:$<COMPILE_LANGUAGE:Swift>,$<PLATFORM_ID:Windows>>:SHELL:-Xcc -Xclang -Xcc -fbuiltin-headers-in-system-modules>"
128129
$<$<AND:$<COMPILE_LANGUAGE:Swift>,$<BOOL:${SwiftCore_ENABLE_LIBRARY_EVOLUTION}>>:-enable-library-evolution>)
129130

130131
include_directories(include)

0 commit comments

Comments
 (0)