From 318a7e0e307273618e2e80c6ca068950f3fb292b Mon Sep 17 00:00:00 2001 From: Stephen Sachs Date: Tue, 16 Jul 2024 06:28:54 +0200 Subject: 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 --- var/spack/repos/builtin/packages/wrf/package.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- cgit v1.2.3-70-g09d2