mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +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)
22 lines
897 B
Makefile
22 lines
897 B
Makefile
include ../tools.mk
|
|
|
|
# ignore-none no-std is not supported
|
|
# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for 'std'
|
|
|
|
# Ensure that modifying a crate on disk (without recompiling it)
|
|
# does not cause ICEs in downstream crates.
|
|
# Previously, we would call `SourceMap.guess_head_span` on a span
|
|
# from an external crate, which would cause us to read an upstream
|
|
# source file from disk during compilation of a downstream crate
|
|
# See #86480 for more details
|
|
|
|
INCR=$(TMPDIR)/incr
|
|
|
|
all:
|
|
cp first_crate.rs second_crate.rs $(TMPDIR)
|
|
$(RUSTC) $(TMPDIR)/first_crate.rs -C incremental=$(INCR) --target $(TARGET) --crate-type lib
|
|
$(RUSTC) $(TMPDIR)/second_crate.rs -C incremental=$(INCR) --target $(TARGET) --extern first-crate=$(TMPDIR) --crate-type lib
|
|
rm $(TMPDIR)/first_crate.rs
|
|
$(RUSTC) $(TMPDIR)/second_crate.rs -C incremental=$(INCR) --target $(TARGET) --cfg second_run --crate-type lib
|
|
|