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.
This commit is contained in:
parent
8300be6d0f
commit
ab78fe0eb9
@ -5,6 +5,8 @@ ifneq ($(findstring undefine,$(.FEATURES)),)
|
|||||||
override undefine COPT
|
override undefine COPT
|
||||||
override undefine CFLAGS_EXTRA
|
override undefine CFLAGS_EXTRA
|
||||||
override undefine LDFLAGS_EXTRA
|
override undefine LDFLAGS_EXTRA
|
||||||
|
override undefine MICROPY_FORCE_32BIT
|
||||||
|
override undefine CROSS_COMPILE
|
||||||
override undefine FROZEN_DIR
|
override undefine FROZEN_DIR
|
||||||
override undefine FROZEN_MPY_DIR
|
override undefine FROZEN_MPY_DIR
|
||||||
override undefine BUILD
|
override undefine BUILD
|
||||||
|
Loading…
Reference in New Issue
Block a user