Porting gdc/dmd to Hurd
yelninei
yelninei at tutamail.com
Wed Jun 17 14:12:25 UTC 2026
On Thursday, 19 March 2026 at 16:41:41 UTC, yelninei wrote:
> Hi everyone,
>
> Over the last couple of weeks I have been trying to make
> gdc/dmd work on GNU Hurd.
>
> This mostly involved porting druntime, wiring things up in the
> gcc/dmd build system and telling dmd about the new OS.
>
This got merged yesterday.
A lot of thanks to all the people here and especially Iain
Buclaw and Nicholas Wilson.
Especially helpful was the importc_compare test for struct
sizes/layouts where I too eagerly copied the linux or BSD
versions.
I also created PRs for gdc and ldc to add the bit of glue code
that should enable it to work there once they have a new enough
druntime.
For bootstrapping I backported this back to gcc-11 and gcc-14/15
which is how Ive been building dmd so far.
Managing 3-4 variants of more or less the same giant patch was
definitely a challenge especially keeping them in sync while they
are constantly changing.
More information about the Digitalmars-d
mailing list