unix: Enable btree module.
But disable it for coverage build, as its extra warninsg aren't compatible with K&R C BerkeleyDB uses.
This commit is contained in:
parent
b09cd0e1ec
commit
43241ceaac
|
@ -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)))
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue