diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-02 15:26:07 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-02 15:26:07 +0300 |
commit | 43241ceaacce2de370a7dd676ac9cc7383e08c83 (patch) | |
tree | 3e1b51cee8d8259f6d5067441f641976f8b90058 /unix | |
parent | b09cd0e1eca4f64ca452f68881c25533b7f2e8a0 (diff) |
unix: Enable btree module.
But disable it for coverage build, as its extra warninsg aren't compatible
with K&R C BerkeleyDB uses.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile | 2 | ||||
-rw-r--r-- | unix/mpconfigport.mk | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/unix/Makefile b/unix/Makefile index 72f35c38c..8eceaea63 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -260,7 +260,7 @@ freedos: # build an interpreter for coverage testing and do the testing coverage: - $(MAKE) COPT="-O0" CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_coverage.h>" -fprofile-arcs -ftest-coverage -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wuninitialized -Wunused-parameter -DMICROPY_UNIX_COVERAGE' LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' BUILD=build-coverage PROG=micropython_coverage + $(MAKE) COPT="-O0" MICROPY_PY_BTREE=0 CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_coverage.h>" -fprofile-arcs -ftest-coverage -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wuninitialized -Wunused-parameter -DMICROPY_UNIX_COVERAGE' LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' BUILD=build-coverage PROG=micropython_coverage coverage_test: coverage $(eval DIRNAME=$(notdir $(CURDIR))) diff --git a/unix/mpconfigport.mk b/unix/mpconfigport.mk index 4dc59f2fa..9f826661a 100644 --- a/unix/mpconfigport.mk +++ b/unix/mpconfigport.mk @@ -11,6 +11,9 @@ MICROPY_USE_READLINE = 1 # Whether to enable FatFs VFS MICROPY_FATFS = 1 +# btree module using Berkeley DB 1.xx +MICROPY_PY_BTREE = 1 + # _thread module using pthreads MICROPY_PY_THREAD = 1 |