simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Fri Apr 7 21:19:43 BST 2023
TL;DR:
b5f87e6 js: set -s ENVIRONMENT=web in Emscripten
d505f08 js: explicitly tell Emscripten which browsers to target
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2023-04-07 21:19:43
commit b5f87e6175db229e3e84e054ce23a1194cc535e4
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=b5f87e6175db229e3e84e054ce23a1194cc535e4;hp=3b9cafa09f783ccadda14d11fc8b73dc496368c0
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Thu Apr 6 09:23:16 2023 +0100
js: set -s ENVIRONMENT=web in Emscripten
Puzzles only runs in Web browsers, so there's no need to include
support for Node or (for now at least) running in a Web worker. This
removes about 5 kiB of code from the boilerplate JavaScript.
cmake/platforms/emscripten.cmake | 1 +
1 file changed, 1 insertion(+)
commit d505f08f671c2f0a3fdd0b7d733e4ce987aa4786
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=d505f08f671c2f0a3fdd0b7d733e4ce987aa4786;hp=b5f87e6175db229e3e84e054ce23a1194cc535e4
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Thu Apr 6 09:58:21 2023 +0100
js: explicitly tell Emscripten which browsers to target
Emscripten has settings indicating which browser versions it should
build code for. These are now by default slightly newer than I'd been
targeting with my hand-written JavaScript. They also don't include
Firefox 48, which KaiOS 2.5 is based on.
This commit adds CMake variables to set the minimum versions that we
pass to Emscripten. They default to the earliest versions with
WebAssembly support, except that Firefox 48 is also supported.
I think the main consequence of this change is to stop Emscripten using
sign-extension and mutable-globals in WebAssembly, which it's done by
default since version 3.1.26.
cmake/platforms/emscripten.cmake | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
More information about the tartarus-commits
mailing list