aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-11-06 07:49:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-11-06 07:49:16 +0200
commitcb432591ca4402fb0f423df336a9574a92f2b515 (patch)
tree9fcd6628e7495ab7f01fa2747b88dd6707f1d4b1
parent8671b4dc516994b7f070a341c004aab28e525431 (diff)
Keep executable bit on .wasm files when installing
-rw-r--r--libbuild2/bin/init.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/bin/init.cxx b/libbuild2/bin/init.cxx
index 83c4b38..2acc262 100644
--- a/libbuild2/bin/init.cxx
+++ b/libbuild2/bin/init.cxx
@@ -526,8 +526,10 @@ namespace build2
if (install_loaded)
{
- install_path (bs, wasm, dir_path ("bin")); // Goes to install.bin
- install_mode (bs, wasm, "644"); // But not executable.
+ // Note that we keep the executable bit on the .wasm file, see
+ // Emscripten issue 12707 for background.
+ //
+ install_path (bs, wasm, dir_path ("bin"));
}
}
}