From 63eb768b7dcd6b4015354a5f1b75f95032c7149a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 27 Sep 2021 21:55:53 +0300 Subject: Add support for build2 configuration class --- mod/mod-build-task.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- cgit v1.1