Skip to content
Snippets Groups Projects
Unverified Commit 92e18076 authored by Harmen Stoppels's avatar Harmen Stoppels Committed by GitHub
Browse files

petsc: fix can provide vs provides issue (#49077)

parent e4a8d45d
Branches
Tags
No related merge requests found
...@@ -610,14 +610,14 @@ def configure_options(self): ...@@ -610,14 +610,14 @@ def configure_options(self):
if "+exodusii+fortran" in spec and "+fortran" in spec: if "+exodusii+fortran" in spec and "+fortran" in spec:
options.append("--with-exodusii-fortran-bindings") options.append("--with-exodusii-fortran-bindings")
direct_dependencies = {
*(spec.name for spec in spec.dependencies()),
*(virtual for edge in spec.edges_to_dependencies() for virtual in edge.virtuals),
}
# tuple format (spacklibname, petsclibname, useinc, uselib) # tuple format (spacklibname, petsclibname, useinc, uselib)
# default: 'gmp', => ('gmp', 'gmp', True, True) # default: 'gmp', => ('gmp', 'gmp', True, True)
# any other combination needs a full tuple # any other combination needs a full tuple
# if not (useinc || uselib): usedir - i.e (False, False) # if not (useinc || uselib): usedir - i.e (False, False)
direct_dependencies = []
for dep in spec.dependencies():
direct_dependencies.append(dep.name)
direct_dependencies.extend(set(vspec.name for vspec in dep.package.virtuals_provided))
for library in ( for library in (
("cuda", "cuda", False, False), ("cuda", "cuda", False, False),
("hip", "hip", True, False), ("hip", "hip", True, False),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment