diff --git a/test/.gitignore b/test/.gitignore index 1d348d8a..8a3df9c3 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -1,3 +1,4 @@ .cache .depend .output +*.exe diff --git a/test/Makefile b/test/Makefile index 317954c0..e66d88e5 100644 --- a/test/Makefile +++ b/test/Makefile @@ -315,7 +315,7 @@ WasmTrap.wasm-test: NEGATIVE = true echo 'fn main () { let r = main_ (); if r != 0 { println!("main_ returned: {}\\n", r); panic!() } }' >> $@ %.rust-test: $(OUTPUT_DIR)/%.rs - rustc $< && ./$* + rustc $< -o $*.exe && ./$*.exe rust: $(RUST_FILES) $(patsubst Rust%.fst,rust%.rust-test,$(filter-out Rust1.fst Rust2.fst Rust3.fst,$(wildcard Rust*.fst)))