diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-10-07 08:17:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-10-08 15:05:21 +0200 |
commit | 8384a087afc7e29e900a3ce96d55ab2f5c2a74c2 (patch) | |
tree | deff3d99e33bfc7abecb3ef0422ccb2dd6c3d43b /libbuild2/config/init.cxx | |
parent | 734bf117f0eb596fc40579810613a6e13c43d3c4 (diff) |
Expose custom save function in config module
It can generally be useful, for example, to complete relative paths before
saving them to config.build (if abs_dir_path does not fit).
Diffstat (limited to 'libbuild2/config/init.cxx')
-rw-r--r-- | libbuild2/config/init.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/config/init.cxx b/libbuild2/config/init.cxx index 2f134c4..b8ba31d 100644 --- a/libbuild2/config/init.cxx +++ b/libbuild2/config/init.cxx @@ -38,7 +38,10 @@ namespace build2 // the entire values. // static pair<names_view, const char*> - save_environment (const value& d, const value* b, names& storage) + save_environment (const scope&, + const value& d, + const value* b, + names& storage) { if (b == nullptr) return make_pair (reverse (d, storage, true /* reduce */), "="); |