Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,18 @@ def runtime_constraints(cls, *, spec, pkg):
f"@{spec.versions}", when=f"%[deptypes=build] {spec.name}@{spec.versions}"
)

# If the compiler depends on gcc@X.Y, the runtime must depend on gcc-runtime@X.Y
if spec.satisfies("%gcc"):
try:
gcc = spec["gcc"]
pkg("intel-oneapi-runtime").requires(
f"@{spec.versions} %gcc-runtime@{gcc.version}",
when=f"%[deptypes=build] {spec.name}/{spec.dag_hash()}",
)
except (RuntimeError, KeyError):
# Externals may not have gcc as a dependency, but still satisfy %gcc
pass

# If a node used %intel-oneapi-runtime@X.Y its dependencies must use @:X.Y
# (technically @:X is broader than ... <= @=X but this should work in practice)
pkg("*").propagate(
Expand Down
Loading