diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-11-06 07:49:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-11-06 07:49:16 +0200 |
commit | cb432591ca4402fb0f423df336a9574a92f2b515 (patch) | |
tree | 9fcd6628e7495ab7f01fa2747b88dd6707f1d4b1 /libbuild2/bin/init.cxx | |
parent | 8671b4dc516994b7f070a341c004aab28e525431 (diff) |
Keep executable bit on .wasm files when installing
Diffstat (limited to 'libbuild2/bin/init.cxx')
-rw-r--r-- | libbuild2/bin/init.cxx | 6 |
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")); } } } |