]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | -include ../tools.mk |
2 | ||
9fa01778 | 3 | # only-mingw |
0731742a XL |
4 | |
5 | all: empty.rs | |
6 | cp -r $(shell cygpath -u $(shell $(RUSTC) --print sysroot)) $(TMPDIR)/sysroot | |
7 | $(RUSTC) --target $(TARGET) --sysroot $(TMPDIR)/sysroot -L$(TMPDIR)/obj -Z print-link-args empty.rs | $(CGREP) 'lib\\crt2.o' | |
8 | mkdir -p $(TMPDIR)/obj | |
9 | mv $(TMPDIR)/sysroot/lib/rustlib/$(TARGET)/lib/crt2.o $(TMPDIR)/obj/crt2.o | |
10 | $(RUSTC) --target $(TARGET) --sysroot $(TMPDIR)/sysroot -L$(TMPDIR)/obj -Z print-link-args empty.rs | $(CGREP) 'obj\\crt2.o' |