Skip to content

Commit 127ff3d

Browse files
committed
Add microlite compile_options to micropython pre-processing stage
This fixes build issues at pre-processing stage for `microlite` sources Signed-off-by: Vikram <[email protected]>
1 parent 368fe32 commit 127ff3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

micropython-modules/microlite/micropython.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ if (PICO_SDK_PATH)
2828
set(MICROLITE_PLATFORM "RP2")
2929
endif()
3030

31+
if(NOT MICROPY_DIR)
32+
get_filename_component(MICROPY_DIR ${PROJECT_DIR}/../.. ABSOLUTE)
33+
endif()
34+
35+
# `py.cmake` for `micropy_gather_target_properties` macro usage
36+
include(${MICROPY_DIR}/py/py.cmake)
37+
3138
include (${CMAKE_CURRENT_LIST_DIR}/micropython_esp.cmake)
3239

3340
get_filename_component(TENSORFLOW_DIR ${PROJECT_DIR}/../../../tensorflow ABSOLUTE)
@@ -448,3 +455,4 @@ target_compile_options(microlite INTERFACE
448455
endif()
449456

450457
target_link_libraries(usermod INTERFACE microlite)
458+
micropy_gather_target_properties(microlite)

0 commit comments

Comments
 (0)