aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-28 13:02:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-28 13:02:52 +0200
commitd07521c67db21aa02dddf9615dce9f9f3dfe784c (patch)
treead7ced4331d87004150ef89134f28abcbf283ec9 /libbuild2/context.cxx
parenta4ef665e379e81656ffb07f9290e7573c137350f (diff)
Redo build_installed without requiring linking whole archive
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r--libbuild2/context.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx
index f310426..cc0eb0b 100644
--- a/libbuild2/context.cxx
+++ b/libbuild2/context.cxx
@@ -133,10 +133,12 @@ namespace build2
//
var_import_build2 = &vp.insert<abs_dir_path> ("import.build2");
-#ifdef BUILD2_IMPORT_PATH
if (!build_installed)
+ {
+#ifdef BUILD2_IMPORT_PATH
gs.assign (var_import_build2) = abs_dir_path (BUILD2_IMPORT_PATH);
#endif
+ }
// Build system verbosity level.
//