LDC 1.42.0
Witold Baryluk
witold.baryluk at gmail.com
Mon Mar 2 00:53:45 UTC 2026
On Sunday, 1 March 2026 at 19:51:41 UTC, kinke wrote:
> Glad to announce LDC 1.42. Some major changes:
>
> * Based on D 2.112.1+ (today's upstream stable).
> * Support for LLVM 21; the prebuilt packages use v21.1.8.
> * New prebuilt package for Alpine Linux aarch64.
> * `ldc2.conf` can now be a directory. All the files inside it,
> ordered naturally, will be concatenated and treated like a big
> config. This enables simpler config extensions (e.g., for
> cross-compilation targets) by adding files instead of modifying
> a file. This feature comes with breaking CMake changes.
> * Breaking change for dcompute: The special `@kernel` UDA is
> now a function and requires parentheses.
> * New `--fdebug-prefix-map` command-line option to aid
> reproducible builds.
>
> Full release log and downloads:
> https://github.com/ldc-developers/ldc/releases/tag/v1.42.0
>
> Thanks to all contributors & sponsors!
Thanks for all the work.
Any pointers and instruction on musl usage?
I tried
```
user at debian:~/ldc2-1.42.0-alpine-x86_64$ ./bin/ldc2 -static
../hello.d
/usr/bin/x86_64-linux-gnu-ld.bfd:
/home/user/ldc2-1.42.0-alpine-x86_64/bin/../lib/libphobos2-ldc.a(curl.o): in function `std.net.curl.CurlAPI.loadAPI()':
...
```
I also tried `-mtriple=x86_64-linux-musl`, but it does nothing.
Without `-static` it compiles, but links to glibc.
More information about the Digitalmars-d-announce
mailing list