From 32b5b50dacb1bfc02a0baef0eda47df8d5f2be37 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 29 Jan 2023 15:54:41 +0100 Subject: Fix webassembly/Makefile WASM optimization because allocateUTF8 was missing --- webassembly/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webassembly/Makefile') diff --git a/webassembly/Makefile b/webassembly/Makefile index 41d106e..49a5ed3 100644 --- a/webassembly/Makefile +++ b/webassembly/Makefile @@ -5,8 +5,8 @@ OBJS=diff.o CXX=em++ -CXXFLAGS=-I./include -Os -std=c++20 -LDFLAGS=-Os -s WASM=1 -s EXPORTED_FUNCTIONS=_diff_create,_diff_apply,_free +CXXFLAGS=-I./include -O2 -std=c++20 +LDFLAGS=-s WASM=1 -s EXPORTED_FUNCTIONS=_diff_create,_diff_apply,_free # Note: Instead of the above explicit EXPORTED_FUNCTIONS, the following causes ~7x wasm file size: #-s LINKABLE=1 -s EXPORT_ALL=1 -- cgit v1.2.3