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 1d8c3f4cff, so add
MICROPY_FORCE_32BIT and CROSS_COMPILE to that set too.
pull/3987/merge
Paul Sokolovsky 2018-07-29 14:58:30 +03:00 zatwierdzone przez Damien George
rodzic 8300be6d0f
commit ab78fe0eb9
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -5,6 +5,8 @@ ifneq ($(findstring undefine,$(.FEATURES)),)
override undefine COPT
override undefine CFLAGS_EXTRA
override undefine LDFLAGS_EXTRA
override undefine MICROPY_FORCE_32BIT
override undefine CROSS_COMPILE
override undefine FROZEN_DIR
override undefine FROZEN_MPY_DIR
override undefine BUILD