8000 mpy-cross/Makefile: Also undefine MICROPY_FORCE_32BIT and CROSS_COMPILE. · micropython/micropython@ab78fe0 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab78fe0

Browse files
Paul Sokolovskydpgeorge
Paul Sokolovsky
authored andcommitted
mpy-cross/Makefile: Also undefine MICROPY_FORCE_32BIT and CROSS_COMPILE.
mpy-cross is a host, not target binary. It should not be build with the target compiler, compiler options and other settings. For example, If someone currently tries to build from pristine checkout the unix port with the following command: make CROSS_COMPILE=arm-linux-gnueabihf- then mpy-cross will be built with arm-linux-gnueabihf-gcc and of course won't run on the host, leading to overall build failure. This situation was worked around for some options in 1d8c3f4, so add MICROPY_FORCE_32BIT and CROSS_COMPILE to that set too.
1 parent 8300be6 commit ab78fe0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mpy-cross/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ ifneq ($(findstring undefine,$(.FEATURES)),)
55
override undefine COPT
66
override undefine CFLAGS_EXTRA
77
override undefine LDFLAGS_EXTRA
8+
override undefine MICROPY_FORCE_32BIT
9+
override undefine CROSS_COMPILE
810
override undefine FROZEN_DIR
911
override undefine FROZEN_MPY_DIR
1012
override undefine BUILD

0 commit comments

Comments
 (0)
0