File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
stdlib/toolchain/CompatibilitySpan Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
- if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
1
+ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND DEFINED SWIFT_STDLIB_LIBRARY_BUILD_TYPES )
2
2
3
3
set (library_name "swiftCompatibilitySpan" )
4
4
5
- if (SWIFT_STDLIB_LIBRARY_BUILD_TYPES )
6
- set (COMPATIBILITY_SPAN_BUILD_TYPES "${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} " )
7
- else ()
8
- # This is not set when building build tools for the toolchain build.
9
- set (COMPATIBILITY_SPAN_BUILD_TYPES "STATIC" )
10
- endif ()
11
-
12
- add_swift_target_library ("${library_name} " ${COMPATIBILITY_SPAN_BUILD_TYPES} IS_STDLIB
5
+ add_swift_target_library ("${library_name} " ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
13
6
FakeStdlib.swift
14
7
../../public/core/Span/RawSpan.swift
15
8
../../public/core/Span/Span.swift
You can’t perform that action at this time.
0 commit comments