summaryrefslogtreecommitdiffstats
path: root/tests/run-make/wasm-exceptions-nostd/Makefile
blob: 34755ec14b74501982ecc5d8891a684ee6d714b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
include ../tools.mk

# only-wasm32-bare

# Add a few command line args to make exceptions work
RUSTC := $(RUSTC) -C llvm-args=-wasm-enable-eh
RUSTC := $(RUSTC) -C target-feature=+exception-handling
RUSTC := $(RUSTC) -C panic=unwind

all:
	$(RUSTC) src/lib.rs --target wasm32-unknown-unknown
	$(NODE) verify.mjs $(TMPDIR)/lib.wasm