Commit Graph

6 Commits

Author SHA1 Message Date
Ian Anderson
b1e2746c38 [embedded] Build the _Builtin_float overlay in embedded Swift mode
Add embedded targets for the _Builtin_float overlay.

rdar://123951443
2025-04-21 10:34:30 -07:00
Ian Anderson
9e9d66efc9 [overlay] Support the older @rpath Darwin library for _Builtin_float's $ld$previous$ symbols
The _Builtin_float symbols were moved twice, most recently from the OS Darwin library, but previously they were in the embedded @rpath Darwin library. @_originallyDefinedIn doesn't support multiple install names, but it can be replaced with -module-abi-name, and then multiple $ld$previous$ symbols can be used.
Update the Platform and Concurrency magic symbols to use $ld$previous$ everywhere.

rdar://130107191
2024-07-09 09:13:30 -07:00
Karoy Lorentey
5bd05df632 [stdlib] _Builtin_float: More availability adjustments
- Fix one placeholder availability I missed in the previous patch
- Add `visionOS 1.0` availability to work around over-pedantic `@_originallyDefinedIn` diagnostic that started appearing in toolchain builds.
2024-06-17 10:03:28 -07:00
Karoy Lorentey
d4564e4328 [stdlib] Define availability for SwiftStdlib 6.0 2024-06-13 16:35:42 -07:00
Ian Anderson
be413e96b4 [overlay] magic-symbols-for-install-name conflicts with @_originallyDefinedIn
The _Builtin_float interfaces were defined in $@rpath/lib/libswiftDarwin.dylib until macOS 10.14.4 and then in usr/lib/swift/libswiftDarwin.dylib after that. We were trying to use magic-symbols-for-install-name for the first one and @_originallyDefinedIn for the second one. However, @_originallyDefinedIn uses the @available introduced version as the first bound for $ld$previous$ which conflicts with the magic-symbols-for-install-name $ld$install_name$. Eventually @_originallyDefinedIn will need to support multiple install names, but until then just use it as-is and stop using magic-symbols-for-install-name.

Add the missing @_originallyDefinedIn on FLT_RADIX, and match the watchOS/tvOS order between @_originallyDefinedIn and @available.
There was no tvOS 7.0, the first one was 9.0.

rdar://122351557
2024-02-23 23:15:27 -08:00
Ian Anderson
1ce3935eb7 [overlay] Make an overlay for the clang _Builtin_float module
Clang's builtin float.h is no longer included in OS/SDK modules, and so it needs its own overlay.

rdar://122351557
2024-02-16 12:31:47 -08:00