wgrib2: oneapi -> comp_sys="intel_linux" (#43632)

This commit is contained in:
eugeneswalker 2024-04-15 09:04:41 -07:00 committed by GitHub
parent 0a26e74cc8
commit 0de8a0e3f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,7 +150,7 @@ def edit(self, spec, prefix):
makefile.filter(r"^%s=.*" % makefile_option, "{}={}".format(makefile_option, value)) makefile.filter(r"^%s=.*" % makefile_option, "{}={}".format(makefile_option, value))
def setup_build_environment(self, env): def setup_build_environment(self, env):
if self.spec.compiler.name in "intel": if self.spec.compiler.name in ["oneapi", "intel"]:
comp_sys = "intel_linux" comp_sys = "intel_linux"
elif self.spec.compiler.name in ["gcc", "clang", "apple-clang"]: elif self.spec.compiler.name in ["gcc", "clang", "apple-clang"]:
comp_sys = "gnu_linux" comp_sys = "gnu_linux"