mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
26e1ce7394
apparently I missed some tests in the last commit. Rather than having dozens of tests use the long version, use the short version in `run-make` and the long version in `run-make-fulldeps` (which is now only three tests)
15 lines
563 B
Makefile
15 lines
563 B
Makefile
include ../tools.mk
|
|
|
|
SESSION_DIR := $(TMPDIR)/session
|
|
OUTPUT_FILE := $(TMPDIR)/build-output
|
|
|
|
all:
|
|
echo $(TMPDIR)
|
|
# Make it so that rustc will fail to create a session directory.
|
|
touch $(SESSION_DIR)
|
|
# Check exit code is 1 for an error, and not 101 for ICE.
|
|
$(RUSTC) foo.rs --crate-type=rlib -C incremental=$(SESSION_DIR) > $(OUTPUT_FILE) 2>&1; [ $$? -eq 1 ]
|
|
$(CGREP) "could not create incremental compilation crate directory" < $(OUTPUT_FILE)
|
|
# -v tests are fragile, hopefully this text won't change
|
|
$(CGREP) -v "internal compiler error" < $(OUTPUT_FILE)
|