summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Sachs <stesachs@amazon.com>2024-07-16 06:28:54 +0200
committerGitHub <noreply@github.com>2024-07-16 06:28:54 +0200
commit318a7e0e307273618e2e80c6ca068950f3fb292b (patch)
treea2811e7aa10f226471350157ea1b9d0dffd3e00d
parente976f351f89e1b63d9607d9538d92106d5d40cb7 (diff)
downloadspack-318a7e0e307273618e2e80c6ca068950f3fb292b.tar.gz
spack-318a7e0e307273618e2e80c6ca068950f3fb292b.tar.bz2
spack-318a7e0e307273618e2e80c6ca068950f3fb292b.tar.xz
spack-318a7e0e307273618e2e80c6ca068950f3fb292b.zip
wrf: explicit conflict oneapi + older versions (#44787)
The patch which enables icx/ifx compilers is only added for `wrf@4.4:`. This PR prints a useful message at concretization time instead of failing the installation later on. Co-authored-by: stephenmsachs <stephenmsachs@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/wrf/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/wrf/package.py b/var/spack/repos/builtin/packages/wrf/package.py
index 8646bb6e1b..0f3a080714 100644
--- a/var/spack/repos/builtin/packages/wrf/package.py
+++ b/var/spack/repos/builtin/packages/wrf/package.py
@@ -256,6 +256,10 @@ class Wrf(Package):
depends_on("m4", type="build")
depends_on("libtool", type="build")
depends_on("adios2", when="@4.5: +adios2")
+
+ conflicts(
+ "%oneapi", when="@:4.3", msg="Intel oneapi compiler patch only added for version 4.4"
+ )
phases = ["configure", "build", "install"]
def setup_run_environment(self, env):