diff options
| author | Damien George <damien@micropython.org> | 2025-08-15 13:11:51 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-08-22 13:31:10 +1000 |
| commit | a3f9dec78852caeb56b70f1cf5cd2bd71f36c1ee (patch) | |
| tree | b36d66bdc86e6c71cf0f98b25ac6978c47575de8 /py | |
| parent | 14e9c00cb99465236c579da722a72a9cfc4ef12f (diff) | |
py/mpconfig: Enable the sys module at all feature levels by default.
This is a pretty fundamental module, and even minimal ports like unix and
zephyr minimal have it enabled. So, enabled it by default at the lowest
feature level.
Most things in the `sys` module are configurable, and off by default, so it
shouldn't add too much to ports that don't already have it enabled (which
is just the minimal port).
Also note that `sys` is still disabled on the bare-arm port, to keep that
ultra minimal. It means we now have bare-arm without `sys` and the minimal
port with `sys`. That will allow different code size comparisons if/when
new `sys` features are added.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
| -rw-r--r-- | py/mpconfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 877b262c8..303eb08f9 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1610,7 +1610,7 @@ typedef time_t mp_timestamp_t; // Whether to provide "sys" module #ifndef MICROPY_PY_SYS -#define MICROPY_PY_SYS (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES) +#define MICROPY_PY_SYS (1) #endif // Whether to initialise "sys.path" and "sys.argv" to their defaults in mp_init() |
