aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc/module.cxx')
-rw-r--r--libbuild2/cc/module.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/cc/module.cxx b/libbuild2/cc/module.cxx
index 2300927..5bb3f60 100644
--- a/libbuild2/cc/module.cxx
+++ b/libbuild2/cc/module.cxx
@@ -706,6 +706,9 @@ namespace build2
rs.assign (x_sys_lib_dirs) = move (lib_dirs.first);
rs.assign (x_sys_inc_dirs) = move (inc_dirs.first);
+ config::save_environment (rs, xi.compiler_environment);
+ config::save_environment (rs, xi.platform_environment);
+
// Load cc.core.config.
//
if (!cast_false<bool> (rs["cc.core.config.loaded"]))