Created
June 11, 2019 14:39
-
-
Save willscott/a7062bfa80b14d610b39f06b1506cdc4 to your computer and use it in GitHub Desktop.
Wasm source map compilation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all | |
all: rot13.wasm | |
%.wasm.full: %.c | |
clang $< -g -o $@ | |
%.wasm.dwarf: %.wasm.full | |
llvm-dwarfdump $< > $@ | |
%.wasm: %.wasm.full %.wasm.dwarf | |
../vendor/emscripten/tools/wasm-sourcemap.py $< -w $@ -p $(CURDIR) -s -u ./$(@:.wasm=.wasm.map) -o $(@:.wasm=.wasm.map) --dwarfdump-output=$(@:.wasm=.wasm.dwarf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment