Skip to content

Rename --glibc-runtimes to --libc-runtimes and make it work with musl; add more targets to the module test matrix #23810

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 10 commits into from
May 11, 2025

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented May 6, 2025

  • --glibc-runtimes is now called --libc-runtimes as it now also works for dynamic musl. (--glibc-runtimes is still accepted for compatibility, but it won't show up in --help.) I've written a wiki page with copy-pastable scripts for building glibc and musl for (almost) all supported targets: https://github.com/ziglang/zig/wiki/Building-multiple-libcs-for-testing
  • Dynamically-linked variants of all musl targets have been added to the module test matrix. Some are commented out because they're crashing/hanging, however. Most are gated by -Dtest-extra-targets mainly because we only have so much CI time to work with. x86_64-linux-musl and aarch64-linux-musl are not gated because they're the most common platforms that dynamic musl will be used on, so we'll want to have some bare minimum coverage of those.
  • MIPS N32 targets have been added to the test matrix as well. The dynamic musl variants are gated by -Dtest-extra-targets.

@alexrp alexrp requested a review from andrewrk May 6, 2025 16:53
alexrp added 8 commits May 8, 2025 21:32
Most of these are gated by -Dtest-extra-targets because:

* We don't really have CI resources to spare at the moment.
* They're relatively niche if you're not on a musl distro.
    * And the few musl distros that exist don't support all these targets.
* Quite a few of them are broken and need investigating.

x86_64-linux-musl and aarch64-linux-musl are not gated as they're the most
common targets that people will be running dynamic musl on, so we'll want to
have some bare minimum coverage of those.
@alexrp alexrp force-pushed the more-test-targets branch from 63b6018 to c373445 Compare May 8, 2025 19:32
@alexrp alexrp force-pushed the more-test-targets branch from 57b9102 to 23cb2b2 Compare May 9, 2025 12:07
@alexrp alexrp merged commit c390671 into ziglang:master May 11, 2025
15 of 18 checks passed
@alexrp alexrp deleted the more-test-targets branch May 11, 2025 23:28
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.

1 participant