From cb432591ca4402fb0f423df336a9574a92f2b515 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 6 Nov 2020 07:49:16 +0200 Subject: Keep executable bit on .wasm files when installing --- libbuild2/bin/init.cxx | 6 ++++-- 1 file 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")); } } } -- cgit v1.1