#1021584 ldc: add support for riscv64

#1021584#5
Date:
2022-10-11 11:57:52 UTC
From:
To:
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

#1021584#10
Date:
2023-12-01 13:59:32 UTC
From:
To:
Dear Maintainer,

Now ldc has been built on riscv64 without any code change. So can we
enable riscv64 support on build target on next upload?

Bo