From 907238a7e82f50373f28975aaf406defb489dac0 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 20 Aug 2024 15:49:10 +0200 Subject: [PATCH] directives: forward compat for c, cxx, fortran deps --- lib/spack/spack/directives.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/spack/spack/directives.py b/lib/spack/spack/directives.py index fcd72d5bfc..ed54ed7197 100644 --- a/lib/spack/spack/directives.py +++ b/lib/spack/spack/directives.py @@ -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)