Skip to content

Commit ec503e7

Browse files
committed
Disable CompatibilitySpans outside of stdlib build
1 parent 9505d55 commit ec503e7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

stdlib/toolchain/CompatibilitySpan/CMakeLists.txt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
1+
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND DEFINED SWIFT_STDLIB_LIBRARY_BUILD_TYPES)
22

33
set(library_name "swiftCompatibilitySpan")
44

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
136
FakeStdlib.swift
147
../../public/core/Span/RawSpan.swift
158
../../public/core/Span/Span.swift

0 commit comments

Comments
 (0)