aboutsummaryrefslogtreecommitdiff
path: root/bpkg
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-08-09 16:45:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-08-11 17:34:22 +0300
commit869a7457902a73da21c2e71439c1ec629fcdbab7 (patch)
tree2c172d460e89f791cc30d1a4959907daaa90d080 /bpkg
parent6ae3a7ede926c472686a9e22072970926eef9d90 (diff)
Disallow build-time dependencies for build system modules
Diffstat (limited to 'bpkg')
-rw-r--r--bpkg/pkg-build.cxx10
1 files changed, 10 insertions, 0 deletions
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);