8000 unix: Refactor mpconfigport.h and mpconfigvariant.h. · jimmo/micropython@c1530a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit c1530a0

Browse files
jimmodpgeorge
authored andcommitted
unix: Refactor mpconfigport.h and mpconfigvariant.h.
This is a no-op for coverage and minimal. The standard and dev variants have been merged and enable the same feature set as a typical bare-metal board. And remove the CI for the dev build. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent f4fed02 commit c1530a0

File tree

13 files changed

+268
-383
lines changed

13 files changed

+268
-383
lines changed

.github/workflows/ports_unix.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,6 @@ jobs:
4949
if: failure()
5050
run: tests/run-tests.py --print-failures
5151

52-
dev:
53-
runs-on: ubuntu-latest
54-
steps:
55-
- uses: actions/checkout@v2
56-
- name: Build
57-
run: source tools/ci.sh && ci_unix_dev_build
58-
- name: Run main test suite
59-
run: source tools/ci.sh && ci_unix_dev_run_tests
60-
- name: Print failures
61-
if: failure()
62-
run: tests/run-tests.py --print-failures
63-
6452
coverage:
6553
runs-on: ubuntu-latest
6654
steps:

ports/unix/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ STATIC uint emit_opt = MP_EMIT_OPT_NONE;
6363
long heap_size = 1024 * 1024 * (sizeof(mp_uint_t) / 4);
6464
#endif
6565

66+
// Number of heaps to assign by default if MICROPY_GC_SPLIT_HEAP=1
67+
#ifndef MICROPY_GC_SPLIT_HEAP_N_HEAPS
68+
#define MICROPY_GC_SPLIT_HEAP_N_HEAPS (1)
69+
#endif
70+
6671
STATIC void stderr_print_strn(void *env, const char *str, size_t len) {
6772
(void)env;
6873
ssize_t ret;

0 commit comments

Comments
 (0)
0