diff options
| author | Damien George | 2014-04-14 21:20:30 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-14 21:20:30 +0100 |
| commit | 3bb8bd899b2b1e5970b5ceb822bdf3df9b2e2d13 (patch) | |
| tree | 0396642ad4a39c2de561330b02b4ae1d6e9fc5b5 /unix | |
| parent | 0ae9c7042ae0839cea575955f36af280943cb99f (diff) | |
Make USE_COMPUTED_GOTO a config option in mpconfig.h.
Disabled by default. Enabled in unix port.
Diffstat (limited to 'unix')
| -rw-r--r-- | unix/Makefile | 2 | ||||
| -rw-r--r-- | unix/mpconfigport.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/unix/Makefile b/unix/Makefile index 64f5a6cf1..ac1baf3d0 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -11,7 +11,7 @@ QSTR_DEFS = qstrdefsport.h include ../py/py.mk # compiler settings -CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) -DMICROPY_USE_COMPUTED_GOTO +CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index fe35e5b09..75f119e91 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -14,6 +14,7 @@ #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) #define MICROPY_PATH_MAX (PATH_MAX) +#define MICROPY_USE_COMPUTED_GOTO (1) #define MICROPY_MOD_SYS_STDFILES (1) // type definitions for the specific machine |
