aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-task.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-09-27 21:55:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-09-27 21:55:53 +0300
commit63eb768b7dcd6b4015354a5f1b75f95032c7149a (patch)
tree9f2335108dc2d9ca016acc7ac8291747e449fce4 /mod/mod-build-task.cxx
parent28de3ed8416c20ab54527e5cc8a48c46de3bb9b5 (diff)
Add support for build2 configuration class
Diffstat (limited to 'mod/mod-build-task.cxx')
-rw-r--r--mod/mod-build-task.cxx5
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));