Source: ldc
Version: 1:1.30.0-1
Severity: wishlist
Tags: ftbf, patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org
Dear Maintainer,
Now ldc does not support riscv64 either upstream or Debian. Fortunately,
The Arch linux has porting the riscv64 support[0] for ldc. And I try to
build ldc on Debian riscv64 arch with their patch. Despite the twists
and turns of the process, in the end the build was successfully. I also
got the support from upstream[1].
The patch attached is to add support for riscv64 on Debian. I have
tested it on my riscv machines.
The mirror issue in the patch here is I have to disable check D_COMPILER_FLAGS
from CMake. I am not sure if this is the inappropriate
DADDITIONAL_DEFAULT_LDC_SWITCHES flag I added in the d/rules. Anyway, it
works.
The next version of ldc from upstream will have better support for
riscv64 as upstream said. I think this is good start to add support riscv64
build about D language packages if apply the change on Debian.
Please let me know if there is any issues.
[0]: https://github.com/felixonmars/archriscv-packages/blob/master/ldc/riscv64.patch
[1]: https://github.com/ldc-developers/ldc/issues/4046