8000 py/mkrules.mk: Remove special check for "-B" in qstr auto generation. · devmonkZA/micropython@23a693e · GitHub
[go: up one dir, main page]

Skip to content

Commit 23a693e

Browse files
committed
py/mkrules.mk: Remove special check for "-B" in qstr auto generation.
When make is passed "-B" it seems that everything is considered out-of-date and so $? expands to all prerequisites. Thus there is no need for a special check to see if $? is emtpy.
1 parent ecb4357 commit 23a693e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

py/mkrules.mk

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,7 @@ $(OBJ): | $(HEADER_BUILD)/qstrdefs.generated.h $(HEADER_BUILD)/mpversion.h
7171

7272
$(HEADER_BUILD)/qstr.i.last: $(SRC_QSTR) | $(HEADER_BUILD)/mpversion.h
7373
$(ECHO) "GEN $@"
74-
$(Q)if [ "$?" = "" ]; then \
75-
echo "QSTR Looks like -B used, trying to emulate"; \
76-
$(CPP) $(QSTR_GEN_EXTRA_CFLAGS) $(CFLAGS) $^ >$(HEADER_BUILD)/qstr.i.last; \
77-
else \
78-
$(CPP) $(QSTR_GEN_EXTRA_CFLAGS) $(CFLAGS) $? >$(HEADER_BUILD)/qstr.i.last; \
79-
fi
74+
$(Q)$(CPP) $(QSTR_GEN_EXTRA_CFLAGS) $(CFLAGS) $? >$(HEADER_BUILD)/qstr.i.last;
8075

8176
$(HEADER_BUILD)/qstr.split: $(HEADER_BUILD)/qstr.i.last
8277
$(ECHO) "GEN $@"

0 commit comments

Comments
 (0)
0