We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd0fee2 commit 7ca4c2dCopy full SHA for 7ca4c2d
1 file changed
product-mini/platforms/zephyr/user-mode/lib-wamr-zephyr/CMakeLists.txt
@@ -57,6 +57,13 @@ zephyr_library_sources (
57
wamr_lib.c
58
)
59
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
+
67
# Specify the memory partition where all globals(including the WAMR global heap buffer)
68
# in the library should be placed. This partition will be defined in the app source code
69
# and added to the use-mode thread that uses the WAMR library.
0 commit comments