summaryrefslogtreecommitdiffstats
path: root/tests/run-make/wasm-export-all-symbols/Makefile
blob: 86713bc80b85a20c50d5d9f2016e30c7546ea90f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include ../tools.mk

# only-wasm32-bare

all:
	$(RUSTC) bar.rs --target wasm32-unknown-unknown
	$(RUSTC) foo.rs --target wasm32-unknown-unknown
	$(NODE) verify.js $(TMPDIR)/foo.wasm
	$(RUSTC) main.rs --target wasm32-unknown-unknown
	$(NODE) verify.js $(TMPDIR)/main.wasm
	$(RUSTC) bar.rs --target wasm32-unknown-unknown -O
	$(RUSTC) foo.rs --target wasm32-unknown-unknown -O
	$(NODE) verify.js $(TMPDIR)/foo.wasm
	$(RUSTC) main.rs --target wasm32-unknown-unknown -O
	$(NODE) verify.js $(TMPDIR)/main.wasm
	$(RUSTC) foo.rs --target wasm32-unknown-unknown -C lto
	$(NODE) verify.js $(TMPDIR)/foo.wasm
	$(RUSTC) main.rs --target wasm32-unknown-unknown -C lto
	$(NODE) verify.js $(TMPDIR)/main.wasm