aboutsummaryrefslogtreecommitdiff
path: root/mod/build-config.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-02 19:28:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-05-02 19:28:02 +0300
commit8e54ae94ce44d57b49b35269f006fe2bf07ec13d (patch)
tree2afef6369545ed6222d08b6eddf77ca37212cc64 /mod/build-config.hxx
parent96511bdc00c2e4c17517b0cc3fce50a08683b2a4 (diff)
For external test packages use the 'all' class as default underlying build class set
Diffstat (limited to 'mod/build-config.hxx')
-rw-r--r--mod/build-config.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/build-config.hxx b/mod/build-config.hxx
index d5e44ce..e8dfe07 100644
--- a/mod/build-config.hxx
+++ b/mod/build-config.hxx
@@ -18,14 +18,18 @@ namespace brep
// Return true if the specified build configuration is excluded by a package
// based on its underlying build class set, build class expressions, and
// build constraints, potentially extending the underlying set with the
- // special classes. Set the exclusion reason if requested.
+ // special classes. Set the exclusion reason if requested. Optionally use
+ // the `all` class as a default underlying build class set rather than the
+ // `default` class (which is, for example, the case for the external test
+ // packages not to reduce their build configuration set needlessly).
//
bool
exclude (const small_vector<bpkg::build_class_expr, 1>&,
const vector<bpkg::build_constraint>&,
const bbot::build_config&,
const std::map<string, string>& class_inheritance_map,
- string* reason = nullptr);
+ string* reason = nullptr,
+ bool default_all_ucs = false);
// Convert dash-separated components (target, build configuration name,
// machine name) or a pattern thereof into a path, replacing dashes with