diff options
author | Ayke van Laethem <[email protected]> | 2022-06-16 03:41:27 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-06-21 08:55:42 +0200 |
commit | b5c5d95b689979780ea01ed4c8d4fdb40602535b (patch) | |
tree | 938d281968848a2c7523ba9fc7717c5dc37e056d /Makefile | |
parent | 633fe95187ea44a8fcc7fe6d20cc705253eac1d1 (diff) | |
download | tinygo-b5c5d95b689979780ea01ed4c8d4fdb40602535b.tar.gz tinygo-b5c5d95b689979780ea01ed4c8d4fdb40602535b.zip |
wasm: use newer WebAssembly features
This commit will start to use a few more WebAssembly features, such as
bulk memory operations. This results in a significant code size saving.
How much it saves varies a lot but it's typically around 1300 bytes.
This change is possible by bumping our minimum Node.js version to 14.
The previous LTS version (12) has been marked end of life, so we can
start to depend on features in the current oldest LTS version, which is
version 14. Browsers have been supporting these features for a long time
now, it's just Node.js that prevented us doing this before.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -234,7 +234,7 @@ endif wasi-libc: lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a: @if [ ! -e lib/wasi-libc/Makefile ]; then echo "Submodules have not been downloaded. Please download them using:\n git submodule update --init"; exit 1; fi - cd lib/wasi-libc && make -j4 WASM_CFLAGS="-O2 -g -DNDEBUG" MALLOC_IMPL=none CC=$(CLANG) AR=$(LLVM_AR) NM=$(LLVM_NM) + cd lib/wasi-libc && make -j4 WASM_CFLAGS="-O2 -g -DNDEBUG -mnontrapping-fptoint -msign-ext" MALLOC_IMPL=none CC=$(CLANG) AR=$(LLVM_AR) NM=$(LLVM_NM) # Build the Go compiler. |