directives: forward compat for c, cxx, fortran deps
This commit is contained in:
parent
ed816d3f0c
commit
907238a7e8
1 changed files with 2 additions and 0 deletions
|
@ -463,6 +463,8 @@ def _depends_on(pkg, spec, when=None, type=dt.DEFAULT_TYPES, patches=None):
|
|||
dep_spec = spack.spec.Spec(spec)
|
||||
if not dep_spec.name:
|
||||
raise DependencyError("Invalid dependency specification in package '%s':" % pkg.name, spec)
|
||||
elif dep_spec.name in ("c", "cxx", "fortran"): # forward compat for language deps
|
||||
return
|
||||
if pkg.name == dep_spec.name:
|
||||
raise CircularReferenceError("Package '%s' cannot depend on itself." % pkg.name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue