File tree 3 files changed +28
-3
lines changed
3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -3226,8 +3226,6 @@ namespace {
3226
3226
// instead of checking if they come from the `std` module.
3227
3227
if (!d->getDeclName ().isIdentifier ())
3228
3228
return false ;
3229
- if (d->getName () == " abs" || d->getName () == " div" )
3230
- return true ;
3231
3229
if (Impl.SwiftContext .LangOpts .Target .isOSDarwin ())
3232
3230
return d->getName () == " strstr" || d->getName () == " sin" ||
3233
3231
d->getName () == " cos" || d->getName () == " exit" ;
Original file line number Diff line number Diff line change
1
+ #
2
+ # API Notes for the C++ Standard Library
3
+ #
4
+ set (output_dir "${SWIFTLIB_DIR} /apinotes" )
5
+ add_custom_target (CxxStdlib-apinotes
6
+ COMMAND ${CMAKE_COMMAND} "-E" "make_directory" "${output_dir} "
7
+ COMMAND ${CMAKE_COMMAND} "-E" "copy_if_different" "${CMAKE_CURRENT_SOURCE_DIR} /std.apinotes" "${output_dir} "
8
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /std.apinotes
9
+ COMMENT "Copying CxxStdlib API Notes to ${output_dir} " )
10
+
11
+ swift_install_in_component(FILES std.apinotes
12
+ DESTINATION "lib/swift/apinotes"
13
+ COMPONENT compiler)
14
+
15
+ set_property (TARGET CxxStdlib-apinotes PROPERTY FOLDER "Miscellaneous" )
16
+ add_dependencies (sdk-overlay CxxStdlib-apinotes)
17
+ add_dependencies (compiler CxxStdlib-apinotes)
18
+
19
+
1
20
# Swift compiler currently assumes that the Darwin overlay is a dependency of
2
21
# CxxStdlib, and fails to build CxxStdlib if Darwin.swiftmodule in build dir
3
22
# is built with a different (older) version of the compiler. To workaround this,
@@ -34,4 +53,4 @@ add_swift_target_library(swiftCxxStdlib STATIC NO_LINK_NAME IS_STDLIB IS_SWIFT_O
34
53
TARGET_SDKS ALL_APPLE_PLATFORMS LINUX WINDOWS
35
54
INSTALL_IN_COMPONENT compiler
36
55
INSTALL_WITH_SHARED
37
- DEPENDS libstdcxx-modulemap libcxxshim_modulemap)
56
+ DEPENDS libstdcxx-modulemap libcxxshim_modulemap CxxStdlib-apinotes )
Original file line number Diff line number Diff line change
1
+ Name: std
2
+ Functions:
3
+ - Name: abs
4
+ Availability: nonswift
5
+ AvailabilityMsg: Use the C standard library function
6
+ - Name: div
7
+ Availability: nonswift
8
+ AvailabilityMsg: Use the C standard library function
You can’t perform that action at this time.
0 commit comments