Skip to content

Commit

Permalink
Add microlite compile_options to micropython pre-processing stage
Browse files Browse the repository at this point in the history
This fixes build issues at pre-processing stage for `microlite` sources

Signed-off-by: Vikram <vikram.dattu@espressif.com>
  • Loading branch information
vikramdattu committed Jun 29, 2023
1 parent 368fe32 commit 127ff3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions micropython-modules/microlite/micropython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ if (PICO_SDK_PATH)
set(MICROLITE_PLATFORM "RP2")
endif()

if(NOT MICROPY_DIR)
get_filename_component(MICROPY_DIR ${PROJECT_DIR}/../.. ABSOLUTE)
endif()

# `py.cmake` for `micropy_gather_target_properties` macro usage
include(${MICROPY_DIR}/py/py.cmake)

include (${CMAKE_CURRENT_LIST_DIR}/micropython_esp.cmake)

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

target_link_libraries(usermod INTERFACE microlite)
micropy_gather_target_properties(microlite)

0 comments on commit 127ff3d

Please sign in to comment.