fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
795 B19 linesraw
1include ../tools.mk
2
3# FIXME(eddyb) provide `HOST_RUSTC` and `TARGET_RUSTC`
4# instead of hardcoding them everywhere they're needed.
5ifeq ($(IS_MUSL_HOST),1)
6ADDITIONAL_ARGS := $(RUSTFLAGS)
7endif
8
9all:
10	EXISTING_ENV=1 EXISTING_OPT_ENV=1 $(RUSTC) --emit dep-info main.rs
11	$(CGREP) "# env-dep:EXISTING_ENV=1" < $(TMPDIR)/main.d
12	$(CGREP) "# env-dep:EXISTING_OPT_ENV=1" < $(TMPDIR)/main.d
13	$(CGREP) "# env-dep:NONEXISTENT_OPT_ENV" < $(TMPDIR)/main.d
14	$(CGREP) "# env-dep:ESCAPE\nESCAPE\\" < $(TMPDIR)/main.d
15	# Proc macro
16	$(BARE_RUSTC) $(ADDITIONAL_ARGS) --out-dir $(TMPDIR) macro_def.rs
17	EXISTING_PROC_MACRO_ENV=1 $(RUSTC) --emit dep-info macro_use.rs
18	$(CGREP) "# env-dep:EXISTING_PROC_MACRO_ENV=1" < $(TMPDIR)/macro_use.d
19	$(CGREP) "# env-dep:NONEXISTENT_PROC_MACEO_ENV" < $(TMPDIR)/macro_use.d