-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore Makefile version temporarily for testing
- Loading branch information
binarycat
committed
Jul 24, 2024
1 parent
55d5f85
commit fa1c001
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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 |
File renamed without changes.