WRF: add -fpermissive when using gcc@14: (#45438)

This commit is contained in:
Luke Robison 2024-08-19 03:30:18 -05:00 committed by GitHub
parent 31477d5dc7
commit a7313dc407
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -402,6 +402,12 @@ def do_configure_fixup(self):
if self.spec.satisfies("@:4.0.3 %intel@2018:"):
config.filter(r"-openmp", "-qopenmp")
if self.spec.satisfies("%gcc@14:"):
config.filter(
"^CFLAGS_LOCAL(.*?)=([^#\n\r]*)(.*)$", r"CFLAGS_LOCAL\1= \2 -fpermissive \3"
)
config.filter("^CC_TOOLS(.*?)=([^#\n\r]*)(.*)$", r"CC_TOOLS\1=\2 -fpermissive \3")
@run_before("configure")
def fortran_check(self):
if not self.compiler.fc: