summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/nvhpc/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nvhpc/package.py b/var/spack/repos/builtin/packages/nvhpc/package.py
index 8a443fc003..6ae56786c1 100644
--- a/var/spack/repos/builtin/packages/nvhpc/package.py
+++ b/var/spack/repos/builtin/packages/nvhpc/package.py
@@ -116,6 +116,13 @@ class Nvhpc(Package):
provides('lapack', when='+lapack')
provides('mpi', when='+mpi')
+ # TODO: effectively gcc is a direct dependency of nvhpc, but we cannot
+ # express that properly. For now, add conflicts for popular non-gcc
+ # compilers instead.
+ conflicts('%clang')
+ conflicts('%intel')
+ conflicts('%xl')
+
def install(self, spec, prefix):
# Enable the silent installation feature
os.environ['NVHPC_SILENT'] = "true"