mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +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)
34 lines
832 B
Makefile
34 lines
832 B
Makefile
include ../tools.mk
|
|
|
|
OUT=$(TMPDIR)/emit
|
|
|
|
all: asm llvm-bc llvm-ir obj metadata link dep-info mir
|
|
|
|
asm: $(OUT)
|
|
$(RUSTC) --emit asm=$(OUT)/libfoo.s foo.rs
|
|
test -f $(OUT)/libfoo.s
|
|
llvm-bc: $(OUT)
|
|
$(RUSTC) --emit llvm-bc=$(OUT)/libfoo.bc foo.rs
|
|
test -f $(OUT)/libfoo.bc
|
|
llvm-ir: $(OUT)
|
|
$(RUSTC) --emit llvm-ir=$(OUT)/libfoo.ll foo.rs
|
|
test -f $(OUT)/libfoo.ll
|
|
obj: $(OUT)
|
|
$(RUSTC) --emit obj=$(OUT)/libfoo.o foo.rs
|
|
test -f $(OUT)/libfoo.o
|
|
metadata: $(OUT)
|
|
$(RUSTC) --emit metadata=$(OUT)/libfoo.rmeta foo.rs
|
|
test -f $(OUT)/libfoo.rmeta
|
|
link: $(OUT)
|
|
$(RUSTC) --emit link=$(OUT)/libfoo.rlib foo.rs
|
|
test -f $(OUT)/libfoo.rlib
|
|
dep-info: $(OUT)
|
|
$(RUSTC) --emit dep-info=$(OUT)/libfoo.d foo.rs
|
|
test -f $(OUT)/libfoo.d
|
|
mir: $(OUT)
|
|
$(RUSTC) --emit mir=$(OUT)/libfoo.mir foo.rs
|
|
test -f $(OUT)/libfoo.mir
|
|
|
|
$(OUT):
|
|
mkdir -p $(OUT)
|