diff --git a/bare-arm/mpconfigport.h b/bare-arm/mpconfigport.h index bc427395b6..6577c4022c 100644 --- a/bare-arm/mpconfigport.h +++ b/bare-arm/mpconfigport.h @@ -17,6 +17,7 @@ #define MICROPY_PY_BUILTINS_SET (0) #define MICROPY_PY_BUILTINS_SLICE (0) #define MICROPY_PY_BUILTINS_PROPERTY (0) +#define MICROPY_PY_GC (0) #define MICROPY_PY_ARRAY (0) #define MICROPY_PY_COLLECTIONS (0) #define MICROPY_PY_MATH (0) diff --git a/py/qstrdefs.h b/py/qstrdefs.h index 16360e73e0..062f741de6 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -148,7 +148,9 @@ Q(enumerate) Q(eval) Q(exec) Q(filter) +#if MICROPY_PY_BUILTINS_FLOAT Q(float) +#endif Q(from_bytes) Q(getattr) Q(globals) @@ -180,7 +182,6 @@ Q(range) Q(read) Q(repr) Q(reversed) -Q(set) Q(sorted) Q(staticmethod) Q(sum) @@ -229,20 +230,8 @@ Q(reverse) Q(add) Q(clear) Q(copy) -Q(discard) -Q(difference) -Q(difference_update) -Q(intersection) -Q(intersection_update) -Q(isdisjoint) -Q(issubset) -Q(issuperset) Q(pop) Q(remove) -Q(symmetric_difference) -Q(symmetric_difference_update) -Q(union) -Q(update) Q(find) Q(rfind) Q(rindex) @@ -272,6 +261,22 @@ Q(iterator) Q(module) Q(slice) +#if MICROPY_PY_BUILTINS_SET +Q(discard) +Q(difference) +Q(difference_update) +Q(intersection) +Q(intersection_update) +Q(isdisjoint) +Q(issubset) +Q(issuperset) +Q(set) +Q(symmetric_difference) +Q(symmetric_difference_update) +Q(union) +Q(update) +#endif + #if MICROPY_PY_BUILTINS_FROZENSET Q(frozenset) #endif @@ -327,9 +332,11 @@ Q(polar) Q(rect) #endif +#if MICROPY_MEM_STATS Q(mem_total) Q(mem_current) Q(mem_peak) +#endif #if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF && (MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE == 0) Q(alloc_emergency_exception_buf)