Source: dh-dlang Version: 0.6.6 Severity: wishlist Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64
Dear maintainers, I have added build support for loongarch in dh-dlang package. Please consider the patch I attached. Your opinions are welcome. Thanks, Dandan Zhang
diff -Nru dh-dlang-0.6.6/debian/control dh-dlang-0.6.6/debian/control --- dh-dlang-0.6.6/debian/control 2024-02-18 21:52:28.000000000 +0000 +++ dh-dlang-0.6.6/debian/control 2024-02-18 21:52:28.000000000 +0000 @@ -25,9 +25,9 @@ for the current architecture. Package: default-d-compiler -Architecture: amd64 arm64 i386 armhf s390x riscv64 ppc64el x32 +Architecture: amd64 arm64 i386 armhf s390x riscv64 loong64 ppc64el x32 Depends: gdc (>= 4:12) [armhf s390x ppc64el x32], - ldc (>= 1:1.36) [amd64 arm64 i386 riscv64], + ldc (>= 1:1.36) [amd64 arm64 i386 riscv64 loong64], ${misc:Depends} Description: Default D compiler (metapackage) This is a metapackage installing the default D compiler in Debian diff -Nru dh-dlang-0.6.6/dlang-flags.mk dh-dlang-0.6.6/dlang-flags.mk --- dh-dlang-0.6.6/dlang-flags.mk 2024-02-18 21:13:50.000000000 +0000 +++ dh-dlang-0.6.6/dlang-flags.mk 2024-02-18 21:52:28.000000000 +0000 @@ -24,7 +24,7 @@ # set DC to the LDC compiler on platforms where we should use it, # and also set the right D flags on those architectures (since LDC uses different flag names) -ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 i386 riscv64)) +ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 i386 riscv64 loong64)) # only set LDC build flags if our compiler is LDC ifeq ($(DC_LDC_FOUND),yes) DC = ldc2