diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-12 14:10:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-12 14:10:00 +0200 |
commit | 8725010c51811c7ff91013e2caca3c45ea96b371 (patch) | |
tree | d4bc589b6e1353055f182cc2dbadc1abc305e6e5 /libbuild2 | |
parent | c0743592bfae808b61a8146fd97af94b50156f0e (diff) |
Explicitly load bundled module buildfiles to "use" their imports
Diffstat (limited to 'libbuild2')
-rw-r--r-- | libbuild2/buildfile | 10 |
1 files changed, 9 insertions, 1 deletions
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 |