aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-03-31 12:36:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-03-31 12:36:09 +0200
commit3eb9e317eeecbb5a6f7ee8fd81136bafb4aa22dc (patch)
treeb5a8dcf16a749c0fb843aa392abdd3b1879b2157
parentb679b1452d6513c0769928a2238ccd367c2b78f7 (diff)
Fix bug in install_path() call (Windows-specific)
-rw-r--r--libbuild2/bin/init.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbuild2/bin/init.cxx b/libbuild2/bin/init.cxx
index c97cadf..ab4b686 100644
--- a/libbuild2/bin/init.cxx
+++ b/libbuild2/bin/init.cxx
@@ -849,8 +849,12 @@ namespace build2
if (lid == "msvc")
{
const target_type& pdb (bs.derive_target_type<file> ("pdb").first);
- install_path (bs, pdb, dir_path ("bin")); // Goes to install.bin
- install_mode (bs, pdb, "644"); // But not executable.
+
+ if (cast_false<bool> (rs["install.loaded"]))
+ {
+ install_path (bs, pdb, dir_path ("bin")); // Goes to install.bin
+ install_mode (bs, pdb, "644"); // But not executable.
+ }
}
return true;