fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1include ../tools.mk 2 3SESSION_DIR := $(TMPDIR)/session 4OUTPUT_FILE := $(TMPDIR)/build-output 5 6all: 7 echo $(TMPDIR) 8 # Make it so that rustc will fail to create a session directory. 9 touch $(SESSION_DIR) 10 # Check exit code is 1 for an error, and not 101 for ICE. 11 $(RUSTC) foo.rs --crate-type=rlib -C incremental=$(SESSION_DIR) > $(OUTPUT_FILE) 2>&1; [ $$? -eq 1 ] 12 $(CGREP) "could not create incremental compilation crate directory" < $(OUTPUT_FILE) 13 # -v tests are fragile, hopefully this text won't change 14 $(CGREP) -v "internal compiler error" < $(OUTPUT_FILE)