From 8725010c51811c7ff91013e2caca3c45ea96b371 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Nov 2019 14:10:00 +0200 Subject: Explicitly load bundled module buildfiles to "use" their imports --- libbuild2/buildfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libbuild2/buildfile b/libbuild2/buildfile index 7b88fd4..539e4e6 100644 --- a/libbuild2/buildfile +++ b/libbuild2/buildfile @@ -5,7 +5,15 @@ # NOTE: remember to update bundled_modules in libbuild2/module.cxx if adding a # new module. # -./: lib{build2} bash/ bin/ c/ cc/ cxx/ in/ version/ +bundled_modules = bash/ bin/ c/ cc/ cxx/ in/ version/ + +./: lib{build2} $bundled_modules + +# Note that we have to load these buildfiles explicitly in order to have their +# imports processed before the $config.save() call below. Failed that, we will +# get a warning about saving unused config.import.* values. +# +include $bundled_modules # A module should treat lib{build2} as an "implied interface dependency" # meaning that it can link it as an implementation dependency and assume that -- cgit v1.1