Skip to content

Commit

Permalink
Merge pull request #513 from climbfuji/bugfix/appleclangwgrib2
Browse files Browse the repository at this point in the history
release/1.9.0: Bug fix in wgrib2: apply '-Wno-error=implicit-function-declaration' for LLVM clang
  • Loading branch information
climbfuji authored Feb 3, 2025
2 parents 2c5daaa + fa50f08 commit 071d705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/spack/repos/builtin/packages/wgrib2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def patch(self):
# Use Spack compiler wrapper flags
def inject_flags(self, name, flags):
if name == "cflags":
if self.spec.compiler.name == "apple-clang":
if self.spec.compiler.name in ["apple-clang", "clang"]:
flags.append("-Wno-error=implicit-function-declaration")

# When mixing Clang/gfortran need to link to -lgfortran
Expand Down

0 comments on commit 071d705

Please sign in to comment.