ldc
ldc copied to clipboard
Add musl libc CI using Alpine Linux container on Ubuntu GHA
Separate PRs to enable musl:
- [x] #4639
- [x] #4648
- [x] #4645
Upstream PRs:
- [x] https://github.com/dlang/dmd/pull/16513
- [x] https://github.com/dlang/dmd/pull/16507
- [x] https://github.com/dlang/dmd/pull/16458
Is there a good way to disable all gdb-related tests? (the gdb version on Alpine is too new and there are no alpine packages for older gdb versions)
Yeah, we have this which should take care of most dmd-testsuite failures: https://github.com/ldc-developers/ldc/blob/40ad5f7583fe90a85fd675bfc0cfc287d565c94a/tests/dmd/tools/d_do_test.d#L1702-L1709
The tester on Alpine Linux with musl is green now :))
Currently it doesn't find any compiler-rt libs, so LDC_INSTALL_LLVM_RUNTIME_LIBS_OS might need tweaking.
Green again!
Any objections before merging?
With this in place, in follow up I intend to work towards statically linked build and uploading a release to GH.
I'll upstream the druntime fix. https://github.com/dlang/dmd/pull/16627