wrf: add ARM compiler support (#38695)
This commit is contained in:
parent
a0b2ca2dde
commit
8aeecafd1a
@ -193,6 +193,17 @@ class Wrf(Package):
|
|||||||
sha256="27c7268f6c84b884d21e4afad0bab8554b06961cf4d6bfd7d0f5a457dcfdffb1",
|
sha256="27c7268f6c84b884d21e4afad0bab8554b06961cf4d6bfd7d0f5a457dcfdffb1",
|
||||||
when="@4.3.1",
|
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("pkgconfig", type=("build"))
|
||||||
depends_on("libtirpc")
|
depends_on("libtirpc")
|
||||||
@ -339,7 +350,7 @@ def configure(self, spec, prefix):
|
|||||||
# Remove broken default options...
|
# Remove broken default options...
|
||||||
self.do_configure_fixup()
|
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(
|
raise InstallError(
|
||||||
"Compiler %s not currently supported for WRF build." % self.spec.compiler.name
|
"Compiler %s not currently supported for WRF build." % self.spec.compiler.name
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user