Skip to content

Commit 1e342d3

Browse files
lynt-smitkatannewt
andauthored
Update ports/zephyr-cp/cptools/build_circuitpython.py
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
1 parent e14f4d0 commit 1e342d3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎ports/zephyr-cp/cptools/build_circuitpython.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,6 @@ async def build_circuitpython(): # noqa: C901
369369
lto = cmake_args.get("LTO", "n") == "y"
370370
circuitpython_flags.append(f"-DCIRCUITPY_ENABLE_MPY_NATIVE={1 if enable_mpy_native else 0}")
371371
circuitpython_flags.append(f"-DCIRCUITPY_FULL_BUILD={1 if full_build else 0}")
372-
# These two are set by py/circuitpy_mpconfig.mk on the make-based ports (LOAD_ATTR_FAST_PATH
373-
# defaults to 1, MAP_LOOKUP_CACHE to CIRCUITPY_FULL_BUILD). This port does not include that
374-
# makefile, so they were never defined - and py/vm.c and py/map.c test them with #if, where an
375-
# undefined identifier is 0. Both interpreter optimisations were therefore off here.
376372
circuitpython_flags.append("-DCIRCUITPY_OPT_LOAD_ATTR_FAST_PATH=1")
377373
circuitpython_flags.append(f"-DCIRCUITPY_OPT_MAP_LOOKUP_CACHE={1 if full_build else 0}")
378374
circuitpython_flags.append(f"-DCIRCUITPY_SETTINGS_TOML={1 if full_build else 0}")

0 commit comments

Comments
 (0)