11 Commits

Author SHA1 Message Date
Johannes Weiss
601e847faa
always @preconcurrency import Glibc (#1175)
Co-authored-by: Johannes Weiss <johannes@jweiss.io>
2025-03-04 09:25:51 -08:00
finagolfin
c15a5e1f5c
[Android] Use the Bionic module in more places (#842)
Also, use `canImport()` wherever importing APIs, reserving `os(Android)` for
platform differences.
2024-08-15 14:34:15 -07:00
Evan Wilde
aecc1b158c
[main] Get Swift-Foundation building against MUSL for Swift Static SDK (#848)
* Get FoundationEssentials building

Adding the missing musl imports to get FoundationEssentials building for
the Swift static SDKs again.

Also providing an option to disable building the macros. The macros
aren't necessary for building the library and will not be run as part of
the static SDK. No need to bloat the SDK or build times further. For
Swift 6, the macros should be provided by the toolchain since the
toolchain and SDK are current revlocked due to swiftmodules.

* Get FoundationInternationalization building

Adding the missing Musl imports to get FoundationInternationalization
building for the static SDK.
2024-08-14 13:34:15 -07:00
Yuta Saito
aa68eebebc
Port LockedState and _ThreadLocal to WASI without any locking (#780) 2024-08-01 13:57:20 -07:00
Saleem Abdulrasool
a7692238a8
FoundationEssentials: initial pass to add Android support (#704)
This adds the necessary guards and includes for the Android modules.
While the module does not compile currently due to nullability
differences (and in some cases missing declarations), this at least
brings the module to a point where we can start working on the errors
and differences to create a maintainable codebase for Android.
2024-06-26 16:00:37 -07:00
Jeremy Schonfeld
e5211f2926
(122981400) Standardize on using internal import 2024-03-06 13:42:02 -08:00
Charles Hu
7272a47c0b
Refactoring some import conditions (#298) 2023-10-25 15:11:37 -07:00
Guoye Zhang
90d50e8cbf
(112739802) Fix remaining copyright comments (#213) 2023-07-31 14:05:32 -07:00
Saleem Abdulrasool
a1ebf4b5ab
FoundationEssentials: correct PlatformKey for Windows (#125)
Windows prefers to use FLS (fibre local storage) for TLS (thread local
storage).  The FLS key is of type `DWORD` rather than `UInt`.  Update
the `typealias` for Windows.
2023-05-15 11:44:43 -07:00
Jeremy Schonfeld
2f3d839598
Remove @_implementationOnly import from Darwin 2023-05-15 10:35:46 -07:00
Jeremy Schonfeld
985f782734
rdar://101354563 (Codable Support for Predicate)
* (101354563) Separate CodableWithConfiguration into standalone file

* (101354563) Update PredicateExpression archive formats

* (101354563) Codable Support for Predicate

* (101354563) Assert on unsupported keypaths
2023-04-26 12:57:40 -07:00