Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
4f7f2e04
Commit
4f7f2e04
authored
Apr 16, 2014
by
Damien George
Browse files
Merge pull request #497 from lurch/build-32bit
New config option MICROPY_FORCE_32BIT (defaulted to 0)
parents
ecdf6cdc
571d5a33
Changes
2
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
4f7f2e04
...
...
@@ -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
...
...
unix/mpconfigport.mk
View file @
4f7f2e04
# 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment