Skip to content

Conversation

al45tair
Copy link
Contributor

Updated the versions of:

  • libxml2 (2.14.5)
  • curl (8.15.0)
  • BoringSSL (newer SHA)

and added:

  • bzip2 (1.0.8)
  • xz-utils (5.8.1)
  • libarchive (3.8.1)
  • mimalloc (2.2.4)

Plus two security patches for musl to fix CVE-2025-26519.

Also link mimalloc by default, so programs using the Static SDK for Linux get a better memory allocator out of the box.

rdar://156423711

@al45tair al45tair requested a review from shahmishal as a code owner July 25, 2025 18:00
@al45tair
Copy link
Contributor Author

This will require updates to the Static SDK build job, because it changes the versions of dependencies and adds some dependencies. Also, we will need to check the licensing situation before merging this.

@al45tair al45tair marked this pull request as draft July 25, 2025 18:02
Updated the versions of:

- libxml2 (2.14.5)
- curl (8.15.0)
- BoringSSL (newer SHA)

and added:

- bzip2 (1.0.8)
- xz-utils (5.8.1)
- libarchive (3.8.1)
- mimalloc (2.2.4)

Plus two security patches for musl to fix CVE-2025-26519.

Also link mimalloc by default, so programs using the Static SDK for Linux
get a better memory allocator out of the box.

rdar://156423711
We need to run the build and install of bzip2 together, otherwise
bzip2 tries to run tests, which won't necessarily work when cross
compiling for a different architecture.

We also want to remove various directories from the final result.

Oh, and we don't want to build libxml2 with lzma support either,
otherwise we'll have to link with liblxma whenever we use libxml2.
To do this properly, we remove all of the allocator implementation from
`libc.a` and `libc++abi.a`, and add `mimalloc.o`, mimalloc's static
implementation, directly to `libc.a`.
@al45tair al45tair marked this pull request as ready for review October 6, 2025 09:51
@al45tair
Copy link
Contributor Author

al45tair commented Oct 6, 2025

Ideally we should land swiftlang/swift#84705 and swiftlang/swift#84706 first, as that will mean that all builds of the 0.1.0 version of the Static SDK for Linux will have library evolution disabled. That seems cleaner than landing this one first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants