Restrict flang on 64bits archs: (amd64 arm64 mips64el ppc64el kfreebsd-amd64 s390x ppc64 sparc64 riscv64) See: https://github.com/llvm/llvm-project/issues/59845

This commit is contained in:
Sylvestre Ledru 2023-01-06 13:23:37 +01:00
parent ce3ab313ea
commit 25f7f7a906
3 changed files with 17 additions and 2 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
llvm-toolchain-15 (1:15.0.6-5~exp2) experimental; urgency=medium
* Restrict flang on 64bits archs:
(amd64 arm64 mips64el ppc64el kfreebsd-amd64 s390x ppc64 sparc64 riscv64)
See: https://github.com/llvm/llvm-project/issues/59845
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 06 Jan 2023 13:19:48 +0100
llvm-toolchain-15 (1:15.0.6-5~exp1) experimental; urgency=medium
* Add flang-15 and libraries support

6
debian/control.in vendored
View File

@ -931,7 +931,9 @@ Description: Post-link optimizer
# ------------- flang -------------
Package: flang-@LLVM_VERSION@
Architecture: any
# no 32bit support
# https://github.com/llvm/llvm-project/issues/59845
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 s390x ppc64 sparc64 riscv64
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
Provides: fortran-compiler, gfortran-mod-15
Description: Fortran compiler
@ -942,7 +944,7 @@ Description: Fortran compiler
of examples, some functionalities are still missing.
Package: libflang-@LLVM_VERSION@-dev
Architecture: any
Architecture: amd64 arm64 mips64el ppc64el kfreebsd-amd64 s390x ppc64 sparc64 riscv64
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
Description: Flang library - Development package

5
debian/rules vendored
View File

@ -285,6 +285,11 @@ ifneq (,$(filter $(DEB_HOST_ARCH),$(BOLT_ARCHS)))
PROJECTS += ;bolt
endif
# flang is only for 64bits
ifneq (,$(filter flang-$(LLVM_VERSION), $(shell dh_listpackages)))
PROJECTS += ;flang
endif
CODECOVERAGE=no
ifneq (,$(filter codecoverage,$(DEB_BUILD_OPTIONS)))
# enable the code coverage