]> git.lizzy.rs Git - rust.git/blob - tests/run-make/incr-prev-body-beyond-eof/Makefile
Rollup merge of #106106 - jyn514:remote-tracking-branch, r=Mark-Simulacrum
[rust.git] / tests / run-make / incr-prev-body-beyond-eof / Makefile
1 # ignore-none no-std is not supported
2 # ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std`
3
4 include ../../run-make-fulldeps/tools.mk
5
6 # Tests that we don't ICE during incremental compilation after modifying a
7 # function span such that its previous end line exceeds the number of lines
8 # in the new file, but its start line/column and length remain the same.
9
10 SRC=$(TMPDIR)/src
11 INCR=$(TMPDIR)/incr
12
13 all:
14         mkdir $(SRC)
15         mkdir $(INCR)
16         cp a.rs $(SRC)/main.rs
17         $(RUSTC) -C incremental=$(INCR) $(SRC)/main.rs --target $(TARGET)
18         cp b.rs $(SRC)/main.rs
19         $(RUSTC) -C incremental=$(INCR) $(SRC)/main.rs --target $(TARGET)