Skip to content

Commit

Permalink
wrf: add ARM compiler support (spack#38695)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmsachs authored Jul 4, 2023
1 parent a0b2ca2 commit 8aeecaf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion var/spack/repos/builtin/packages/wrf/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,17 @@ class Wrf(Package):
sha256="27c7268f6c84b884d21e4afad0bab8554b06961cf4d6bfd7d0f5a457dcfdffb1",
when="@4.3.1",
)
# Add ARM compiler support
patch(
"https://github.com/wrf-model/WRF/pull/1888/commits/4a084e03575da65f254917ef5d8eb39074abd3fc.patch",
sha256="c522c4733720df9a18237c06d8ab6199fa9674d78375b644aec7017cb38af9c5",
when="@4.5: %arm",
)
patch(
"https://github.com/wrf-model/WRF/pull/1888/commits/6087d9192f7f91967147e50f5bc8b9e49310cf98.patch",
sha256="f82a18cf7334e0cbbfdf4ef3aa91ca26d4a372709f114ce0116b3fbb136ffac6",
when="@4.5: %arm",
)

depends_on("pkgconfig", type=("build"))
depends_on("libtirpc")
Expand Down Expand Up @@ -339,7 +350,7 @@ def configure(self, spec, prefix):
# Remove broken default options...
self.do_configure_fixup()

if self.spec.compiler.name not in ["intel", "gcc", "aocc", "fj", "oneapi"]:
if self.spec.compiler.name not in ["intel", "gcc", "arm", "aocc", "fj", "oneapi"]:
raise InstallError(
"Compiler %s not currently supported for WRF build." % self.spec.compiler.name
)
Expand Down

0 comments on commit 8aeecaf

Please sign in to comment.