Skip to content

Commit 6eb17c3

Browse files
committed
ports: Disable async/await on bare-arm, minimal, pic16bit, cc3200.
It costs 1188 bytes of code on Thumb 2 archs.
1 parent c33df19 commit 6eb17c3

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

bare-arm/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define MICROPY_ENABLE_DOC_STRING (0)
2121
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
2222
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)
23+
#define MICROPY_PY_ASYNC_AWAIT (0)
2324
#define MICROPY_PY_BUILTINS_BYTEARRAY (0)
2425
#define MICROPY_PY_BUILTINS_MEMORYVIEW (0)
2526
#define MICROPY_PY_BUILTINS_ENUMERATE (0)

cc3200/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
#define MICROPY_STREAMS_NON_BLOCK (1)
7676
#define MICROPY_MODULE_WEAK_LINKS (1)
7777
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
78+
#define MICROPY_PY_ASYNC_AWAIT (0)
7879
#define MICROPY_PY_BUILTINS_TIMEOUTERROR (1)
7980
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
8081
#ifndef DEBUG

minimal/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#define MICROPY_ENABLE_DOC_STRING (0)
2323
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
2424
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)
25+
#define MICROPY_PY_ASYNC_AWAIT (0)
2526
#define MICROPY_PY_BUILTINS_BYTEARRAY (0)
2627
#define MICROPY_PY_BUILTINS_MEMORYVIEW (0)
2728
#define MICROPY_PY_BUILTINS_ENUMERATE (0)

pic16bit/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#define MICROPY_ENABLE_SOURCE_LINE (0)
4444
#define MICROPY_ENABLE_DOC_STRING (0)
4545
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
46+
#define MICROPY_PY_ASYNC_AWAIT (0)
4647
#define MICROPY_PY_BUILTINS_BYTEARRAY (0)
4748
#define MICROPY_PY_BUILTINS_MEMORYVIEW (0)
4849
#define MICROPY_PY_BUILTINS_FROZENSET (0)

0 commit comments

Comments
 (0)