netlib-scalapack %cce: add cflags -Wno-error=implicit-function-declaration (#47701)

This commit is contained in:
eugeneswalker 2024-11-20 17:09:14 -05:00 committed by GitHub
parent a9b3e1670b
commit 29cf1559cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,8 @@ class ScalapackBase(CMakePackage):
def flag_handler(self, name, flags): def flag_handler(self, name, flags):
if name == "cflags": if name == "cflags":
if self.spec.satisfies("%cce"):
flags.append("-Wno-error=implicit-function-declaration")
if self.spec.satisfies("%gcc@14:"): if self.spec.satisfies("%gcc@14:"):
# https://bugzilla.redhat.com/show_bug.cgi?id=2178710 # https://bugzilla.redhat.com/show_bug.cgi?id=2178710
flags.append("-std=gnu89") flags.append("-std=gnu89")