Skip to content

Commit

Permalink
Makefile: use wasm32.jsc
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Jan 31, 2021
1 parent 8d0033a commit 4e0e495
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -784,17 +784,16 @@ endif
js/wasm32-%.jsc.js: jsc/wasm32/%.jsc | js install/file-slurp
tools/bin/jsc wasm32-unknown-none < $< > $@
js/wasm32-%.jsc.js: jsc/common/%.jsc | js install/file-slurp
tools/bin/jsc wasm32-unknown-none < $< > $@

# fixme: don't use a wildcard here.
jsc = $(wildcard jsc/wasm32/*.jsc) $(wildcard jsc/common/*.jsc)

js/wasm32.js: install/file-slurp

# build the runtime JS
js/wasm32.js: js/wasm32-main.jsc.js js/wasm32-range.jsc.js js/wasm32-system.jsc.js js/wasm32-thinthin.jsc.js js/wasm32-boot.jsc.js
js/wasm32.js: jsc/wasm32/wasm32.jsc
echo "// autogenerated from $^, do not edit" > $@.new
cat js/wasm32-range.jsc.js js/wasm32-system.jsc.js js/wasm32-thinthin.jsc.js js/wasm32-main.jsc.js js/wasm32-boot.jsc.js >> $@.new
tools/bin/jsc wasm32-unknown-none < $< >> $@.new
mv $@.new $@

# build-everything rules
Expand Down

0 comments on commit 4e0e495

Please sign in to comment.