2022-08-23 00:00:00 +00:00
|
|
|
include ../../run-make-fulldeps/tools.mk
|
2016-09-27 11:19:03 -07:00
|
|
|
|
2018-11-25 04:43:00 +02:00
|
|
|
# FIXME(eddyb) provide `HOST_RUSTC` and `TARGET_RUSTC`
|
|
|
|
# instead of hardcoding them everywhere they're needed.
|
2019-05-02 17:22:14 +02:00
|
|
|
ifeq ($(IS_MUSL_HOST),1)
|
|
|
|
ADDITIONAL_ARGS := $(RUSTFLAGS)
|
|
|
|
endif
|
2016-09-27 11:19:03 -07:00
|
|
|
all:
|
2019-05-02 17:22:14 +02:00
|
|
|
$(BARE_RUSTC) $(ADDITIONAL_ARGS) foo.rs --out-dir $(TMPDIR)
|
2018-11-25 04:43:00 +02:00
|
|
|
$(RUSTC) bar.rs --target $(TARGET) --emit dep-info
|
2017-11-23 23:19:50 +08:00
|
|
|
$(CGREP) -v "proc-macro source" < $(TMPDIR)/bar.d
|