@@ -19,15 +19,6 @@ add_dependencies(sdk-overlay CxxStdlib-apinotes)
1919add_dependencies (compiler CxxStdlib-apinotes)
2020
2121
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-
3122set (swift_cxxstdlib_dependencies)
3223if (NOT DEFINED SWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT OR NOT SWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT)
3324 set (swift_cxxstdlib_dependencies _Builtin_float)
@@ -44,12 +35,6 @@ add_swift_target_library(swiftCxxStdlib STATIC NO_LINK_NAME IS_STDLIB IS_SWIFT_O
4435 String .swift
4536
4637 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}
5338 SWIFT_MODULE_DEPENDS_ANDROID Android
5439
5540 SWIFT_COMPILE_FLAGS ${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS} ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
0 commit comments