File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 5
5
# standard library from the Swift compiler build.
6
6
project (swift-stdlib LANGUAGES C CXX )
7
7
8
+ # CMake passes `-external:I` to clang-cl which results in the search order being
9
+ # altered, and this impacts the definitions of the intrinsics. When building
10
+ # with a MSVC toolset 19.29.30036.3 or newer, this will prevent the runtime from
11
+ # being built on Windows. Since we know that we only support `clang-cl` as the
12
+ # compiler for the runtime due to the use of the Swift calling convention, we
13
+ # simply override the CMake behaviour unconditionally.
14
+ set (CMAKE_INCLUDE_SYSTEM_FLAG_C "-I" )
15
+ set (CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-I" )
16
+
8
17
# Add path for custom CMake modules.
9
18
list (APPEND CMAKE_MODULE_PATH
10
19
"${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules" )
You can’t perform that action at this time.
0 commit comments