aboutsummaryrefslogtreecommitdiff
path: root/build2/dist/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/dist/module.cxx')
-rw-r--r--build2/dist/module.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/build2/dist/module.cxx b/build2/dist/module.cxx
index eed9562..2da75c4 100644
--- a/build2/dist/module.cxx
+++ b/build2/dist/module.cxx
@@ -91,6 +91,12 @@ namespace build2
//
bool s (config::specified (r, "config.dist"));
+ // Adjust module priority so that the config.dist.* values are saved at
+ // the end of config.build.
+ //
+ if (s)
+ config::save_module (r, "dist", INT32_MAX);
+
// dist.root
//
{