d5f2b8e5c6
this avoids having to rebuild the whole compiler on each commit when `omit-git-hash = false`.
7 lines
242 B
Makefile
7 lines
242 B
Makefile
include ../tools.mk
|
|
|
|
all:
|
|
$(RUSTC) --emit=metadata --crate-type lib stable.rs
|
|
$(RUSTC) --emit=metadata --extern stable=$(TMPDIR)/libstable.rmeta main.rs 2>&1 >/dev/null \
|
|
| $(CGREP) -e "stable since $$(cat $(S)/src/version)(-[a-zA-Z]+)?"
|