File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
product-mini/platforms/zephyr/user-mode/lib-wamr-zephyr Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,13 @@ zephyr_library_sources (
5757 wamr_lib.c
5858)
5959
60+ # Ensure generated headers (e.g. heap_constants.h) are ready before compiling
61+ # the library. Zephyr adds this dependency for its own libraries automatically,
62+ # but parallel builds can race when the library is added via add_subdirectory.
63+ if (TARGET zephyr_generated_headers)
64+ add_dependencies (wamr_lib zephyr_generated_headers )
65+ endif ()
66+
6067# Specify the memory partition where all globals(including the WAMR global heap buffer)
6168# in the library should be placed. This partition will be defined in the app source code
6269# and added to the use-mode thread that uses the WAMR library.
You can’t perform that action at this time.
0 commit comments