File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,12 @@ if(SWIFT_BUILD_DYNAMIC_STDLIB)
77
77
list (APPEND SWIFT_STDLIB_LIBRARY_BUILD_TYPES SHARED )
78
78
endif ()
79
79
if (SWIFT_BUILD_STATIC_STDLIB )
80
- list (APPEND SWIFT_STDLIB_LIBRARY_BUILD_TYPES STATIC )
80
+ list_intersect ("${SWIFT_APPLE_PLATFORMS} " "${SWIFT_SDKS} " building_darwin_sdks )
81
+ if (building_darwin_sdks )
82
+ message (SEND_ERROR "cannot build static standard library for Darwin SDKs" )
83
+ else ()
84
+ list (APPEND SWIFT_STDLIB_LIBRARY_BUILD_TYPES STATIC )
85
+ endif ()
81
86
endif ()
82
87
83
88
function (swift_create_stdlib_targets name variant define_all_alias )
Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ if(SWIFT_BUILD_DYNAMIC_SDK_OVERLAY)
5
5
list (APPEND SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES SHARED )
6
6
endif ()
7
7
if (SWIFT_BUILD_STATIC_SDK_OVERLAY )
8
- list (APPEND SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES STATIC )
8
+ list_intersect ("${SWIFT_APPLE_PLATFORMS} " "${SWIFT_SDKS} " building_darwin_sdks )
9
+ if (building_darwin_sdks )
10
+ message (SEND_ERROR "cannot build static standard library for Darwin SDKs" )
11
+ else ()
12
+ list (APPEND SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES STATIC )
13
+ endif ()
9
14
endif ()
10
15
11
16
set (all_overlays
You can’t perform that action at this time.
0 commit comments