diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-27 21:55:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-27 21:55:53 +0300 |
commit | 63eb768b7dcd6b4015354a5f1b75f95032c7149a (patch) | |
tree | 9f2335108dc2d9ca016acc7ac8291747e449fce4 | |
parent | 28de3ed8416c20ab54527e5cc8a48c46de3bb9b5 (diff) |
Add support for build2 configuration class
-rw-r--r-- | mod/mod-build-task.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx index 5a7a428..b4a8311 100644 --- a/mod/mod-build-task.cxx +++ b/mod/mod-build-task.cxx @@ -268,6 +268,9 @@ handle (request& rq, response& rs) move (td.constraint)); } + bool module_pkg ( + b->package_name.string ().compare (0, 10, "libbuild2-") == 0); + task_manifest task (move (b->package_name), move (b->package_version), move (r->location), @@ -278,7 +281,7 @@ handle (request& rq, response& rs) cm.config->target, cm.config->environment, cm.config->args, - belongs (*cm.config, "host"), + belongs (*cm.config, module_pkg ? "build2" : "host"), cm.config->warning_regexes, move (t->interactive)); |