nvhpc: set run dependency on gcc
This commit is contained in:
parent
16489a6e70
commit
da8cbf22dc
@ -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,
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user