]> git.lizzy.rs Git - rust.git/blob - tests/run-make/fmt-write-bloat/Makefile
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / run-make / fmt-write-bloat / Makefile
1 include ../../run-make-fulldeps/tools.mk
2
3 # ignore-windows
4
5 ifeq ($(shell $(RUSTC) -vV | grep 'host: $(TARGET)'),)
6
7 # Don't run this test when cross compiling.
8 all:
9
10 else
11
12 NM = nm
13
14 PANIC_SYMS = panic_bounds_check pad_integral Display Debug
15
16 # Allow for debug_assert!() in debug builds of std.
17 ifdef NO_DEBUG_ASSERTIONS
18 PANIC_SYMS += panicking panic_fmt
19 endif
20
21 all: main.rs
22         $(RUSTC) $< -O
23         $(NM) $(call RUN_BINFILE,main) | $(CGREP) -v $(PANIC_SYMS)
24
25 endif