Skip to content

Commit fa1c001

Browse files
committed
restore Makefile version temporarily for testing
1 parent 55d5f85 commit fa1c001

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ run-make/extern-flag-disambiguates/Makefile
2020
run-make/extern-fn-reachable/Makefile
2121
run-make/extern-multiple-copies/Makefile
2222
run-make/extern-multiple-copies2/Makefile
23+
run-make/fmt-write-bloat/Makefile
2324
run-make/foreign-double-unwind/Makefile
2425
run-make/foreign-exceptions/Makefile
2526
run-make/foreign-rust-exceptions/Makefile
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
include ../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 Debug
15+
16+
# Allow for debug_assert!() in debug builds of std.
17+
ifdef NO_DEBUG_ASSERTIONS
18+
PANIC_SYMS += panicking panic_fmt pad_integral Display Debug
19+
endif
20+
21+
all: main.rs
22+
$(RUSTC) $< -O
23+
$(NM) $(call RUN_BINFILE,main) | $(CGREP) -v $(PANIC_SYMS)
24+
25+
endif

0 commit comments

Comments
 (0)