We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2215a51 + cf2993c commit 4a54598Copy full SHA for 4a54598
stdlib/CMakeLists.txt
@@ -11,8 +11,13 @@ project(swift-stdlib LANGUAGES C CXX)
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 "-Isystem")
15
-set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-Isystem")
+if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
+ set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-imsvc ")
16
+ set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-imsvc ")
17
+else()
18
+ set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-Isystem")
19
+ set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-Isystem")
20
+endif()
21
22
# Add path for custom CMake modules.
23
list(APPEND CMAKE_MODULE_PATH
0 commit comments