From 3eb9e317eeecbb5a6f7ee8fd81136bafb4aa22dc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 31 Mar 2020 12:36:09 +0200 Subject: Fix bug in install_path() call (Windows-specific) --- libbuild2/bin/init.cxx | 8 ++++++-- 1 file 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 ("pdb").first); - install_path (bs, pdb, dir_path ("bin")); // Goes to install.bin - install_mode (bs, pdb, "644"); // But not executable. + + if (cast_false (rs["install.loaded"])) + { + install_path (bs, pdb, dir_path ("bin")); // Goes to install.bin + install_mode (bs, pdb, "644"); // But not executable. + } } return true; -- cgit v1.1