Skip to content

Commit 7242d78

Browse files
wip
1 parent 7284049 commit 7242d78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/wasm-miniscript/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ define WASM_PACK_COMMAND
1010
$(WASM_PACK) build --no-opt --out-dir $(1) $(WASM_PACK_FLAGS) --target $(2)
1111
endef
1212

13+
# run wasm-opt separately so we can pass `-g` flag
14+
# https://github.com/llvm/llvm-project/issues/55781#issuecomment-1376582397
1315
define WASM_OPT_COMMAND
14-
$(WASM_OPT) -Oz $(1)/*.wasm -o $(1)/*.wasm
16+
$(WASM_OPT) -g -Oz $(1)/*.wasm -o $(1)/*.wasm
1517
endef
1618

1719
define REMOVE_GITIGNORE

0 commit comments

Comments
 (0)