Skip to content

Commit 2ee0165

Browse files
authored
Add semaphore support for NuttX (#1367)
1 parent f3f8d68 commit 2ee0165

File tree

1 file changed

+6
-0
lines changed
  • product-mini/platforms/nuttx

1 file changed

+6
-0
lines changed

product-mini/platforms/nuttx/wamr.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ else
222222
CFLAGS += -DWASM_ENABLE_LIB_PTHREAD=0
223223
endif
224224

225+
ifeq ($(CONFIG_INTERPRETERS_WAMR_LIB_PTHREAD_SEMAPHORE),y)
226+
CFLAGS += -DWASM_ENABLE_LIB_PTHREAD_SEMAPHORE=1
227+
else
228+
CFLAGS += -DWASM_ENABLE_LIB_PTHREAD_SEMAPHORE=0
229+
endif
230+
225231
ifeq ($(CONFIG_INTERPRETERS_WAMR_DISABLE_HW_BOUND_CHECK),y)
226232
CFLAGS += -DWASM_DISABLE_HW_BOUND_CHECK=1
227233
else

0 commit comments

Comments
 (0)