234 Commits
Author SHA1 Message Date
Charles Zablit 3414b07b3a Merge pull request #137 from charles-zablit/cz/cmake/cmp0157
[CMake] Require CMake 3.29 to enable CMP0157
2026-11-09 18:23:48 +00:00
Charles Zablit dbdb221ebf [CMake] Require CMake 3.29 to enable CMP0157 2026-11-06 12:05:41 +00:00
Karoy Lorentey bc30c67cf0 Update README with a prominent note about struct Atomic 2026-08-05 14:16:44 -07:00
Karoy Lorentey 0442cb5a3f Merge pull request #126 from apple/rename-passRetained 1.3.1 2026-06-23 14:01:29 -07:00
Pavel Yaskevich 85633139bf Rename internal passRetained helper to _passRetained
This avoids ambiguity with a public version of the same API
that is part of a Swift standard library and returns a non-optional
result.
2026-06-23 13:34:45 -07:00
Karoy Lorentey 713601069b Merge pull request #125 from incertum/chore/workflow-permissions
chore: restrict GitHub workflow permissions - future-proof
2025-11-18 15:13:04 -08:00
Melissa Kilby 455ab397c3 chore: restrict GitHub workflow permissions - future-proof
Signed-off-by: Melissa Kilby <mkilby@apple.com>
2025-10-17 15:21:22 -07:00
Karoy Lorentey 537d0e74c7 Merge pull request #124 from apple/build-for-wasm-on-ci
Add `enable_wasm_sdk_build: true` to `pull_request.yml`
2025-09-03 18:01:27 -07:00
Max Desiatov 74033e14d3 Add enable_wasm_sdk_build: true to pull_request.yml 2025-09-01 16:19:26 +01:00
Karoy Lorentey 53d9464c12 Merge pull request #122 from etcwilde/ewilde/computed-swift-module-triple
Install swiftmodules with full module triple
2025-07-08 17:31:50 -07:00
Karoy Lorentey a53de94b60 Merge pull request #123 from azarovalex/fix-api-docs
Fix API documentation links in README.md
2025-07-08 17:30:48 -07:00
Alex Azarov 7e6135863b Fix API documentation links in README.md 2025-06-28 17:13:33 +02:00
Evan Wilde 19dab11ecd Install swiftmodules with full module triple
Clean up how the CMake build installs swiftmodules using the full module
triple instead of just the architecture. This change uses the compiler
to compute the expected module triple instead of attempting to compute
it in CMake script. This is more maintainable and robust when adding new
platforms and architectures.
2025-06-27 14:54:17 -07:00
Karoy Lorentey b601256eab Merge pull request #120 from lorentey/update-xcodeproj
Update Xcode project
1.3.0
2025-06-04 12:56:01 -07:00
Karoy Lorentey ee599def1a Update Xcode project 2025-06-04 12:50:47 -07:00
Karoy Lorentey 490b14e219 Merge pull request #119 from lorentey/update-supported-toolchains
Bump required toolchain to Swift 5.10
2025-06-04 12:40:28 -07:00
Karoy Lorentey 040c295e86 Update copyrights 2025-06-04 11:31:02 -07:00
Karoy Lorentey 228f980b04 Update GitHub pull request workflow
Stop trying to test with Swift 5.9 on Linux
2025-06-03 19:26:59 -07:00
Karoy Lorentey cae5c18207 [test] Confess that Unmanaged’s hacky Equatable conformance is retroactive 2025-06-03 19:23:56 -07:00
Karoy Lorentey 581fb9e875 Drop support for Swifts 5.7-5.9
As usual, we support just the three latest Swift releases: 5.10, 6.0 and 6.1.

Also delete obsolete C atomics. Dropping Swifts <5.9 allows us to make ATOMICS_NATIVE_BUILTINS the unconditional default behavior.
2025-06-03 19:23:53 -07:00
Karoy Lorentey 239a74d140 Merge pull request #117 from rgoldberg/116-executable-markdown
Remove executable bit from 2 Markdown files
2025-06-03 18:25:27 -07:00
Karoy Lorentey bbabc0eb17 Merge pull request #114 from wanbok/patch-1
Update README.md
2025-06-03 18:05:00 -07:00
Karoy Lorentey ae09acf534 Merge pull request #118 from apple/egorzhdan/extern-c
Make AtomicsShims compatible with C++ interop
2025-06-03 18:03:09 -07:00
Egor Zhdan 14b0f18370 Make AtomicsShims compatible with C++ interop
This fixes linker errors such as
```
Undefined symbols for architecture arm64:
  "_sa_retain_n(void*, unsigned int)", referenced from:
      (extension in Atomics):Swift.Unmanaged.retain(by: Swift.Int) -> () in Unmanaged extensions.swift.o
   NOTE: found '__sa_retain_n' in _AtomicsShims.c.o, declaration possibly missing 'extern "C"'
```
when building with Swift/C++ interoperability enabled.
2025-05-30 16:43:33 +01:00
Ross Goldberg c2a3bed658 Remove executable bit from 2 Markdown files.
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2025-05-11 05:07:32 -04:00
Mishal Shah d61ca105d6 Merge pull request #115 from apple/github-actions-support
[CI] Add support for GitHub Actions
2025-03-07 16:22:48 -08:00
Nate Cook 4bd141c54f Disable failing checks 2025-03-05 11:19:36 -06:00
Mishal Shah 81d30f50be Update the swift-evolution urls 2025-03-04 23:35:49 -08:00
Mishal Shah aaed6134e1 [CI] Add support for GitHub Actions 2025-03-04 23:15:02 -08:00
Wanbok Choi (Wayne) 14e0302666 Update README.md
Remove the 'Portability Concerns' link
2025-03-01 19:38:16 +09:00
Karoy Lorentey 9e65972363 Merge pull request #113 from futurejones/add-riscv64-support
add support for riscv64
2024-07-18 17:46:37 -07:00
Neil Jones d0e0a4ad9d add support for riscv64 2024-06-17 12:21:32 +09:00
Karoy Lorentey 1f2007ef41 Merge pull request #110 from lorentey/there-is-no-such-thing-as-an-implementation-only-import
[native] Stop using @_implementationOnly import in package configs
2023-12-14 19:34:47 -05:00
Karoy LorenteyandGuillaume Lessard 074c8c8fea Update link to compiler issue
Co-authored-by: Guillaume Lessard <glessard@users.noreply.github.com>
2023-12-13 15:04:52 -08:00
Karoy Lorentey a3ac36c96d [native] Stop using @_implementationOnly import in package configs
@_implementationOnly does not work correctly unless Swift’s Library Evolution dialect is enabled — it leads to obscure module loading failures.

There seems to be no way to create a compile-time condition on whether library evolution is enabled, so we need to stop using @_implementationOnly imports in all package configurations.
2023-12-12 12:05:41 -08:00
Karoy Lorentey ddacb0864c Merge pull request #109 from lorentey/fix-swiftcc-mismatch
_sa_retain_n/_sa_release_n: Use C calling convention in package builds
2023-12-12 14:42:20 -05:00
Karoy Lorentey bd8115e046 _sa_retain_n/_sa_release_n: Use C calling convention in package builds 2023-12-07 11:14:18 -08:00
Karoy Lorentey cd142fd2f6 Merge pull request #106 from lorentey/release-cleanup
Not so minor prerelease fixups/changes
1.2.0
2023-09-27 18:26:29 -07:00
Karoy Lorentey 3431b8543f Fix CMake configuration 2023-09-27 16:12:25 -07:00
Karoy Lorentey 02d0d97948 [Xcode] Formally update .xcodeproj to Xcode 15
Also, remove an orphaned package manifest link.
2023-09-27 15:26:46 -07:00
Karoy Lorentey 084814f56f [Xcode] Move code sign config to shared xcconfig
This makes these settings automatically apply to the test target, too.
2023-09-27 15:01:41 -07:00
Karoy Lorentey f26da16e6e On 5.9, hide the _AtomicsShims import from the public interface
This appears to resolve a build failure when library evolution is enabled. (This isn’t a fully supported configuration (this package is not ABI stable), but it should still be possible to build the package in that configuration.)

@_implementationOnly has bad failure modes when library evolution isn’t enabled, but I hope we’ll be avoiding those here, as on 5.9+, we’re only using it to import a couple of functions — we aren’t relying on imported things to set struct layouts or anything like that. 🤞
2023-09-27 14:46:50 -07:00
Karoy Lorentey fe0fc8b76c Avoid confusing Swift 5.7 with _pointerBitWidth conditionals
#if conditional parsing is evidently broken in 5.7, and it gets confused unless things are arranged just right. Things seem to work as long as the `compiler(>=5.9)` conditional is put on its own `#if` construct on the topmost level — so let’s do that for now.
2023-09-27 14:19:36 -07:00
Karoy Lorentey 48fad5a291 Let builtins & shims expose different primitive signatures
For builtins, we want to emulate the stdlib’s solution where all atomic primitive operations take and return a (sort of) opaque atomic representation value.

For C shims, we do not want to atomic primitives to take and return _Atomic(T) values, so let’s revert to the original 1.1.x solution.
2023-09-25 21:05:53 -07:00
Karoy Lorentey d976dd29ad Protect _pointerBitWidth conditionals from misparsing on older Swifts 2023-09-25 19:42:22 -07:00
Karoy Lorentey 8189a83f1c [DocC] Fix some missing items 2023-09-22 17:04:54 -07:00
Karoy Lorentey 1abcb9584a [test] Don’t report failures when weakCompareExchange to spuriously fails 2023-09-22 16:51:43 -07:00
Karoy Lorentey 5b1941e84e Update README 2023-09-22 16:48:37 -07:00
Karoy Lorentey 4a34c7a38f [Xcode] Add “iOS Developer” as code sign identity for iOS/watchOS/tvOS 2023-09-22 16:11:20 -07:00
Karoy Lorentey de979cde5c [Utilities/run-full-tests.sh] Fix label of tvOS Xcodeproj build 2023-09-22 16:10:46 -07:00