Skip to content

Commit 43241ce

Browse files
committed
unix: Enable btree module.
But disable it for coverage build, as its extra warninsg aren't compatible with K&R C BerkeleyDB uses.
1 parent b09cd0e commit 43241ce

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

unix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ freedos:
260260

261261
# build an interpreter for coverage testing and do the testing
262262
coverage:
263-
$(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
263+
$(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
264264

265265
coverage_test: coverage
266266
$(eval DIRNAME=$(notdir $(CURDIR)))

unix/mpconfigport.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ MICROPY_USE_READLINE = 1
1111
# Whether to enable FatFs VFS
1212
MICROPY_FATFS = 1
1313

14+
# btree module using Berkeley DB 1.xx
15+
MICROPY_PY_BTREE = 1
16+
1417
# _thread module using pthreads
1518
MICROPY_PY_THREAD = 1
1619

0 commit comments

Comments
 (0)