aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;