Skip to content

Commit 242fe5c

Browse files
authored
Merge pull request #77677 from swiftlang/egorzhdan/cxxstdlib-builtin-float
[cxx-interop] Declare CxxStdlib dependency on _Builtin_float
2 parents 51dadb0 + 72425fa commit 242fe5c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stdlib/public/Cxx/std/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ if(SWIFT_BUILD_STDLIB AND SWIFT_BUILD_SDK_OVERLAY)
2828
set(swift_cxxstdlib_darwin_dependencies Darwin)
2929
endif()
3030

31+
set(swift_cxxstdlib_dependencies)
32+
if(NOT DEFINED SWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT OR NOT SWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT)
33+
set(swift_cxxstdlib_dependencies _Builtin_float)
34+
endif()
35+
3136
#
3237
# C++ Standard Library Overlay.
3338
#
@@ -38,7 +43,7 @@ add_swift_target_library(swiftCxxStdlib STATIC NO_LINK_NAME IS_STDLIB IS_SWIFT_O
3843
Chrono.swift
3944
String.swift
4045

41-
SWIFT_MODULE_DEPENDS Cxx
46+
SWIFT_MODULE_DEPENDS Cxx ${swift_cxxstdlib_dependencies}
4247
SWIFT_MODULE_DEPENDS_IOS ${swift_cxxstdlib_darwin_dependencies}
4348
SWIFT_MODULE_DEPENDS_OSX ${swift_cxxstdlib_darwin_dependencies}
4449
SWIFT_MODULE_DEPENDS_TVOS ${swift_cxxstdlib_darwin_dependencies}

0 commit comments

Comments
 (0)