Skip to content

Cherry pick recent PRs destined for 1.2 #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 16, 2025

Conversation

lorentey
Copy link
Member

This cherry picks the following PRs to the 1.2 release branch:

Checklist

  • I've read the Contribution Guidelines
  • My contributions are licensed under the Swift license.
  • I've followed the coding style of the rest of the project.
  • I've added tests covering all new code paths my change adds to the project (if appropriate).
  • I've added benchmarks covering new functionality (if appropriate).
  • I've verified that my change does not break any existing tests or introduce unexplained benchmark regressions.
  • I've updated the documentation if necessary.

pm-dev and others added 13 commits May 16, 2025 00:16
ManagedBuffer.capacity depends on malloc introspection (e.g.,
`malloc_size`), which is not available on this platform -- and is thus
marked as such.

Here, _HashNode.Storage is a ManagedBuffer. Thankfully, the uses of
.capacity are fairly limited: one for statistic purposes, which we just
completely omit on the platform, and the other, setting a minimum
capacity in the header by the buffer's .capacity; the alternative being
setting that minimum capacity directly.
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
CMP0091 was added in CMake 3.15. The minimum version is CMake 3.16 so
we don't need to do the check anymore.
Install swiftmodules with the full module triple expected by the
compiler instead of attempting to compute the correct architecture name
in CMake.
…xpectations

The existing expressions had the same effect, but they used different operators (`<=` instead of `<` and `>` instead of `>=`). The distinction is usually irrelevant, but there is no reason not to just follow what the stdlib is doing exactly.
@lorentey lorentey added this to the 1.2.0 milestone May 16, 2025
@lorentey lorentey merged commit d3c6642 into apple:release/1.2 May 16, 2025
21 checks passed
@lorentey lorentey added OrderedCollections OrderedSet and OrderedDictionary Heap Min-max heap module labels May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Heap Min-max heap module OrderedCollections OrderedSet and OrderedDictionary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants