8000 py/mkrules.mk: Add link to build troubleshooting on failure. · micropython/micropython@a384bc4 · GitHub
[go: up one dir, main page]

Skip to content

Commit a384bc4

Browse files
committed
py/mkrules.mk: Add link to build troubleshooting on failure.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent 7480543 commit a384bc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/mkrules.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $(BUILD)/%.o: %.s
5353

5454
define compile_c
5555
$(ECHO) "CC $<"
56-
$(Q)$(CC) $(CFLAGS) -c -MD -o $@ $<
56+
$(Q)$(CC) $(CFLAGS) -c -MD -o $@ $< || echo -e "See \033[1;31mhttps://github.com/micropython/micropython/wiki/Build-Troubleshooting\033[0m" && false
5757
@# The following fixes the dependency file.
5858
@# See http://make.paulandlesley.org/autodep.html for details.
5959
@# Regex adjusted from the above to play better with Windows paths, etc.
@@ -65,7 +65,7 @@ endef
6565

6666
define compile_cxx
6767
$(ECHO) "CXX $<"
68-
$(Q)$(CXX) $(CXXFLAGS) -c -MD -o $@ $<
68+
$(Q)$(CXX) $(CXXFLAGS) -c -MD -o $@ $< || echo "See https://github.com/micropython/micropython/wiki/Build-Troubleshooting" && false
6969
@# The following fixes the dependency file.
7070
@# See http://make.paulandlesley.org/autodep.html for details.
7171
@# Regex adjusted from the above to play better with Windows paths, etc.

0 commit comments

Comments
 (0)
0