fork/rust

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

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

master
441 B25 linesraw
1include ../tools.mk
2
3# ignore-windows
4
5ifeq ($(shell $(RUSTC) -vV | grep 'host: $(TARGET)'),)
6
7# Don't run this test when cross compiling.
8all:
9
10else
11
12NM = nm
13
14PANIC_SYMS = panic_bounds_check Debug
15
16# Allow for debug_assert!() in debug builds of std.
17ifdef NO_DEBUG_ASSERTIONS
18PANIC_SYMS += panicking panic_fmt pad_integral Display Debug
19endif
20
21all: main.rs
22	$(RUSTC) $< -O
23	$(NM) $(call RUN_BINFILE,main) | $(CGREP) -v $(PANIC_SYMS)
24
25endif