Skip to content

Commit ed6d254

Browse files
committed
mpy-cross/Makefile: Guard "override undefine" by test for make feature.
make v3.81 doesn't have "undefine" so we can't use it with that version.
1 parent 85f7b0b commit ed6d254

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mpy-cross/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# The following is a temporary hack to forefully undefine vars that might have
22
# be defined by a calling Makefile (from recursive make).
33
# TODO: Find a better way to be able to call this Makefile recursively.
4+
ifneq ($(findstring undefine,$(.FEATURES)),)
45
override undefine COPT
56
override undefine CFLAGS_EXTRA
67
override undefine LDFLAGS_EXTRA
78
override undefine FROZEN_DIR
89
override undefine FROZEN_MPY_DIR
910
override undefine BUILD
1011
override undefine PROG
12+
endif
1113

1214
include ../py/mkenv.mk
1315

0 commit comments

Comments
 (0)