aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/config/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/config/module.cxx')
-rw-r--r--libbuild2/config/module.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/config/module.cxx b/libbuild2/config/module.cxx
index c84b1fa..713d30c 100644
--- a/libbuild2/config/module.cxx
+++ b/libbuild2/config/module.cxx
@@ -56,6 +56,13 @@ namespace build2
m->save_variable (var, flags);
}
+ void module::
+ save_environment (scope& rs, const char* var)
+ {
+ if (module* m = rs.find_module<module> (module::name))
+ m->save_environment (var);
+ }
+
bool module::
save_module (const char* name, int prio)
{