New config option MICROPY_FORCE_32BIT (defaulted to 0)

Makes it easier for 64-bit unix hosts to build 32-bit unix
binaries (for testing)
pull/497/head
Andrew Scheller 2014-04-16 01:46:01 +01:00
rodzic 3b108e7699
commit 571d5a3363
2 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -20,6 +20,16 @@ else
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref
endif
ifeq ($(MICROPY_FORCE_32BIT),1)
CFLAGS += -m32
LDFLAGS += -m32
ifeq ($(MICROPY_MOD_FFI),1)
ifeq ($(UNAME_S),Linux)
CFLAGS_MOD += -I/usr/include/i686-linux-gnu
endif
endif
endif
ifeq ($(MICROPY_USE_READLINE),1)
CFLAGS_MOD += -DMICROPY_USE_READLINE=1
LDFLAGS_MOD += -lreadline

Wyświetl plik

@ -1,5 +1,8 @@
# Enable/disable modules and 3rd-party libs to be included in interpreter
# Build 32-bit binaries on a 64-bit host
MICROPY_FORCE_32BIT = 0
# Linking with GNU readline causes binary to be licensed under GPL
MICROPY_USE_READLINE = 1