Merge pull request #134385 from r-burns/gcc-ppc64

gcc: update powerpc-specific configuration
This commit is contained in:
Jörg Thalheim 2021-08-17 07:12:36 +01:00 committed by GitHub
commit ba3768aec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}"