From 14485a1ebe8daccf80498efbb0b88a6ab2021fa2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Feb 2022 11:16:53 +0200 Subject: Add ability to override amalgamation and subprojects in bootstrap_src() --- libbuild2/file.hxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libbuild2/file.hxx') diff --git a/libbuild2/file.hxx b/libbuild2/file.hxx index b47d8dc..5a25475 100644 --- a/libbuild2/file.hxx +++ b/libbuild2/file.hxx @@ -182,8 +182,15 @@ namespace build2 // Bootstrap the project's root scope, the src part. // + // If amalgamation is present, then use the specified directory as the + // amalgamation instead of discovering or extracting it from bootstrap.build + // (use empty directory to disable amalgamation). If subprojects is false, + // then do not discover or extract subprojects. + // LIBBUILD2_SYMEXPORT void - bootstrap_src (scope& root, optional& altn); + bootstrap_src (scope& root, optional& altn, + optional amalgamation = nullopt, + bool subprojects = true); // Return true if this scope has already been bootstrapped, that is, the // following calls have already been made: -- cgit v1.1