nvhpc: set run dependency on gcc

This commit is contained in:
Massimiliano Culpo 2024-11-18 23:20:10 +01:00
parent 16489a6e70
commit da8cbf22dc
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -438,9 +438,7 @@ class Nvhpc(Package, CompilerPackage):
if pkg: if pkg:
version(ver, sha256=pkg[0], url=pkg[1]) version(ver, sha256=pkg[0], url=pkg[1])
depends_on("c", type="build") # generated depends_on("gcc languages=c,c++,fortran", type="run")
depends_on("cxx", type="build") # generated
depends_on("fortran", type="build") # generated
variant("blas", default=True, description="Enable BLAS") variant("blas", default=True, description="Enable BLAS")
variant( variant(
@ -461,8 +459,6 @@ class Nvhpc(Package, CompilerPackage):
provides("lapack", when="+lapack") provides("lapack", when="+lapack")
provides("mpi", when="+mpi") provides("mpi", when="+mpi")
requires("%gcc", msg="nvhpc must be installed with %gcc")
provides("c", "cxx") provides("c", "cxx")
provides("fortran") provides("fortran")
@ -526,11 +522,11 @@ def install(self, spec, prefix):
makelocalrc_args = [ makelocalrc_args = [
"-gcc", "-gcc",
self.compiler.cc, self["gcc"].cc,
"-gpp", "-gpp",
self.compiler.cxx, self["gcc"].cxx,
"-g77", "-g77",
self.compiler.f77, self["gcc"].fortran,
"-x", "-x",
compilers_bin, compilers_bin,
] ]