summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/wasm-symbols-different-module/Makefile
blob: bb6a5d3c9d24a9182a69ce63f05d02e48ec0221b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
-include ../../run-make-fulldeps/tools.mk

# only-wasm32-bare

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

	$(RUSTC) bar.rs --target wasm32-unknown-unknown
	$(NODE) verify-imports.js $(TMPDIR)/bar.wasm m1/f m1/g m2/f
	$(RUSTC) bar.rs --target wasm32-unknown-unknown -C lto
	$(NODE) verify-imports.js $(TMPDIR)/bar.wasm m1/f m1/g m2/f
	$(RUSTC) bar.rs --target wasm32-unknown-unknown -O
	$(NODE) verify-imports.js $(TMPDIR)/bar.wasm m1/f m1/g m2/f
	$(RUSTC) bar.rs --target wasm32-unknown-unknown -O -C lto
	$(NODE) verify-imports.js $(TMPDIR)/bar.wasm m1/f m1/g m2/f

	$(RUSTC) baz.rs --target wasm32-unknown-unknown
	$(NODE) verify-imports.js $(TMPDIR)/baz.wasm sqlite/allocate sqlite/deallocate

	$(RUSTC) log.rs --target wasm32-unknown-unknown
	$(NODE) verify-imports.js $(TMPDIR)/log.wasm test/log