gcc: update powerpc-specific configuration

* support -m32 on (big-endian) powerpc64-linux
* fix compilation to powerpc*-musl targets with
  incomplete decimal-float support
This commit is contained in:
Ryan Burns 2021-08-16 19:42:10 -07:00
parent 739f0b22b7
commit 7364241a6a

View file

@ -158,9 +158,15 @@ let
(lib.enableFeature enablePlugin "plugin")
]
# Support -m32 on powerpc64le
# Support -m32 on powerpc64le/be
++ lib.optional (targetPlatform.system == "powerpc64le-linux")
"--enable-targets=powerpcle-linux"
++ lib.optional (targetPlatform.system == "powerpc64-linux")
"--enable-targets=powerpc-linux"
# Fix "unknown long double size, cannot define BFP_FMT"
++ lib.optional (targetPlatform.isPower && targetPlatform.isMusl)
"--disable-decimal-float"
# Optional features
++ lib.optional (isl != null) "--with-isl=${isl}"