summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-04-19 14:17:58 +0200
committerGitHub <noreply@github.com>2022-04-19 08:17:58 -0400
commit9a05a7a7141c3663a77bcb50e2608ce76f973bd6 (patch)
treeda4897eb3593905400605065c81865147a81d381 /var
parent1c13b3707cca69d474443d504576ce0e237ccb72 (diff)
downloadspack-9a05a7a7141c3663a77bcb50e2608ce76f973bd6.tar.gz
spack-9a05a7a7141c3663a77bcb50e2608ce76f973bd6.tar.bz2
spack-9a05a7a7141c3663a77bcb50e2608ce76f973bd6.tar.xz
spack-9a05a7a7141c3663a77bcb50e2608ce76f973bd6.zip
nvhpc: gcc is a direct dep (#29963)
Diffstat (limited to 'var')
-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"