File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Sources/_FoundationCShims Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ set(COLLECTIONS_SINGLE_MODULE YES)
64
64
set (COLLECTIONS_FOUNDATION_TOOLCHAIN_MODULE YES )
65
65
66
66
set (SwiftFoundation_MACRO "" CACHE STRING "Path to Foundation macro plugin" )
67
+ set (BUILT_FIRST_SDK NO CACHE BOOL "Whether an SDK has already been built and we can use its headers" )
67
68
68
69
# Make sure our dependencies exists
69
70
include (FetchContent)
Original file line number Diff line number Diff line change @@ -17,10 +17,13 @@ add_library(_FoundationCShims STATIC
17
17
string_shims.c
18
18
uuid.c)
19
19
20
- target_include_directories (_FoundationCShims PUBLIC include )
21
20
22
- target_compile_options (_FoundationCShims INTERFACE
23
- "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR} /include/module.modulemap>" )
21
+ if (NOT BUILT_FIRST_SDK)
22
+ target_include_directories (_FoundationCShims PUBLIC include )
23
+
24
+ target_compile_options (_FoundationCShims INTERFACE
25
+ "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR} /include/module.modulemap>" )
26
+ endif ()
24
27
25
28
set_property (GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS _FoundationCShims)
26
29
You can’t perform that action at this time.
0 commit comments