Skip to content

Commit d882b51

Browse files
committed
Move obtain-borrowck to run-make-fulldeps.
1 parent b913a45 commit d882b51

File tree

5 files changed

+20
-25
lines changed

5 files changed

+20
-25
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
include ../tools.mk
2+
3+
# This example shows how to implement a rustc driver that retrieves MIR bodies
4+
# together with the borrow checker information.
5+
6+
# How to run this
7+
# $ ./x.py test src/test/run-make/obtain-borrowck
8+
9+
DRIVER_BINARY := "$(TMPDIR)"/driver
10+
SYSROOT := $(shell $(RUSTC) --print sysroot)
11+
12+
all:
13+
$(RUSTC) driver.rs -o "$(DRIVER_BINARY)"
14+
$(TARGET_RPATH_ENV) "$(DRIVER_BINARY)" --sysroot $(SYSROOT) test.rs -o "$(TMPDIR)/driver_test" > "$(TMPDIR)"/output.stdout
15+
16+
ifdef RUSTC_BLESS_TEST
17+
cp "$(TMPDIR)"/output.stdout output.stdout
18+
else
19+
$(DIFF) output.stdout "$(TMPDIR)"/output.stdout
20+
endif

src/test/run-make/obtain-borrowck/Makefile

-25
This file was deleted.

0 commit comments

Comments
 (0)