@@ -19,15 +19,6 @@ add_dependencies(sdk-overlay CxxStdlib-apinotes)
19
19
add_dependencies (compiler CxxStdlib-apinotes)
20
20
21
21
22
- # Swift compiler currently assumes that the Darwin overlay is a dependency of
23
- # CxxStdlib, and fails to build CxxStdlib if Darwin.swiftmodule in build dir
24
- # is built with a different (older) version of the compiler. To workaround this,
25
- # declare the Darwin overlay as a dependency of CxxStdlib.
26
- set (swift_cxxstdlib_darwin_dependencies)
27
- if (SWIFT_BUILD_STDLIB AND SWIFT_BUILD_SDK_OVERLAY)
28
- set (swift_cxxstdlib_darwin_dependencies Darwin)
29
- endif ()
30
-
31
22
set (swift_cxxstdlib_dependencies)
32
23
if (NOT DEFINED SWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT OR NOT SWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT)
33
24
set (swift_cxxstdlib_dependencies _Builtin_float)
@@ -44,12 +35,6 @@ add_swift_target_library(swiftCxxStdlib STATIC NO_LINK_NAME IS_STDLIB IS_SWIFT_O
44
35
String .swift
45
36
46
37
SWIFT_MODULE_DEPENDS Cxx ${swift_cxxstdlib_dependencies}
47
- SWIFT_MODULE_DEPENDS_IOS ${swift_cxxstdlib_darwin_dependencies}
48
- SWIFT_MODULE_DEPENDS_OSX ${swift_cxxstdlib_darwin_dependencies}
49
- SWIFT_MODULE_DEPENDS_TVOS ${swift_cxxstdlib_darwin_dependencies}
50
- SWIFT_MODULE_DEPENDS_WATCHOS ${swift_cxxstdlib_darwin_dependencies}
51
- SWIFT_MODULE_DEPENDS_XROS ${swift_cxxstdlib_darwin_dependencies}
52
- SWIFT_MODULE_DEPENDS_MACCATALYST ${swift_cxxstdlib_darwin_dependencies}
53
38
SWIFT_MODULE_DEPENDS_ANDROID Android
54
39
55
40
SWIFT_COMPILE_FLAGS ${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS} ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
0 commit comments