nuttx: add CONFIG_INTERPRETERS_WAMR_PERF_PROFILING (#1178)

Based on the corresponding nuttx patch:
  https://github.com/apache/incubator-nuttx-apps/pull/1166
This commit is contained in:
YAMAMOTO Takashi 2022-05-21 15:56:56 +09:00 committed by Wang Ning
parent 3228b964db
commit 7a955bb1c4

View File

@ -160,6 +160,12 @@ else
CFLAGS += -DWASM_ENABLE_BULK_MEMORY=0 CFLAGS += -DWASM_ENABLE_BULK_MEMORY=0
endif endif
ifeq ($(CONFIG_INTERPRETERS_WAMR_PERF_PROFILING),y)
CFLAGS += -DWASM_ENABLE_PERF_PROFILING=1
else
CFLAGS += -DWASM_ENABLE_PERF_PROFILING=0
endif
ifeq ($(CONFIG_INTERPRETERS_WAMR_MEMORY_PROFILING),y) ifeq ($(CONFIG_INTERPRETERS_WAMR_MEMORY_PROFILING),y)
CFLAGS += -DWASM_ENABLE_MEMORY_PROFILING=1 CFLAGS += -DWASM_ENABLE_MEMORY_PROFILING=1
else else