mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
33289132ec
Move almost all run-make-fulldeps tests to run-make They pass fine, and this avoids having to build the compiler twice. There are few enough tests left that I think it should be possible to get rid of this test suite altogether, but I expect this PR to fail at least a few times in bors and want to get it merged before tackling further changes. cc https://github.com/rust-lang/rust/pull/83775 Fixes https://github.com/rust-lang/rust/issues/66085. Fixes https://github.com/rust-lang/rust/issues/83773.
26 lines
441 B
Makefile
26 lines
441 B
Makefile
include ../tools.mk
|
|
|
|
# ignore-windows
|
|
|
|
ifeq ($(shell $(RUSTC) -vV | grep 'host: $(TARGET)'),)
|
|
|
|
# Don't run this test when cross compiling.
|
|
all:
|
|
|
|
else
|
|
|
|
NM = nm
|
|
|
|
PANIC_SYMS = panic_bounds_check Debug
|
|
|
|
# Allow for debug_assert!() in debug builds of std.
|
|
ifdef NO_DEBUG_ASSERTIONS
|
|
PANIC_SYMS += panicking panic_fmt pad_integral Display Debug
|
|
endif
|
|
|
|
all: main.rs
|
|
$(RUSTC) $< -O
|
|
$(NM) $(call RUN_BINFILE,main) | $(CGREP) -v $(PANIC_SYMS)
|
|
|
|
endif
|