summaryrefslogtreecommitdiffstats
path: root/tests/run-make/wasm-symbols-not-imported/Makefile
blob: 38440a8b0258c4cb34f8e56b5072780502a380cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include ../tools.mk

# only-wasm32-bare

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