mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-04-18 18:18:44 +00:00
Fix a compilation race condition for higher version Zephyr (#4907)
This commit is contained in:
parent
dd0fee27a5
commit
7ca4c2d52b
|
|
@ -57,6 +57,13 @@ zephyr_library_sources (
|
||||||
wamr_lib.c
|
wamr_lib.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Ensure generated headers (e.g. heap_constants.h) are ready before compiling
|
||||||
|
# the library. Zephyr adds this dependency for its own libraries automatically,
|
||||||
|
# but parallel builds can race when the library is added via add_subdirectory.
|
||||||
|
if(TARGET zephyr_generated_headers)
|
||||||
|
add_dependencies(wamr_lib zephyr_generated_headers)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Specify the memory partition where all globals(including the WAMR global heap buffer)
|
# Specify the memory partition where all globals(including the WAMR global heap buffer)
|
||||||
# in the library should be placed. This partition will be defined in the app source code
|
# in the library should be placed. This partition will be defined in the app source code
|
||||||
# and added to the use-mode thread that uses the WAMR library.
|
# and added to the use-mode thread that uses the WAMR library.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user