From 869a7457902a73da21c2e71439c1ec629fcdbab7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 9 Aug 2021 16:45:18 +0300 Subject: Disallow build-time dependencies for build system modules --- bpkg/pkg-build.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bpkg/pkg-build.cxx') diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx index d78e739..3ce9f43 100644 --- a/bpkg/pkg-build.cxx +++ b/bpkg/pkg-build.cxx @@ -969,6 +969,16 @@ namespace bpkg continue; } + else if (pdb.type == build2_config_type) + { + // Note that the dependent is not necessarily a build system + // module. + // + fail << "build-time dependency " << dn << " in build system " + << "module configuration" << + info << "build system modules cannot have build-time " + << "dependencies"; + } } bool system (false); -- cgit v1.1