1. fix error while building project with RT-Thread Studio. (#497)

2. add macro to enable/disable export native method of rt-thread.
This commit is contained in:
alvkeke
2021-01-14 18:47:52 +08:00
committed by GitHub
parent 8ec03a5165
commit 794028a968
3 changed files with 65 additions and 7 deletions

View File

@ -16,6 +16,20 @@
#include <stdint.h>
#include <ctype.h>
#if defined(WASM_ENABLE_AOT)
#if defined(RTT_WAMR_BUILD_TARGET_THUMB)
#define BUILD_TARGET "thumbv4t"
#elif defined(RTT_WAMR_BUILD_TARGET_ARMV7)
#define BUILD_TARGET "armv7"
#elif defined(RTT_WAMR_BUILD_TARGET_ARMV6)
#define BUILD_TARGET "armv6"
#elif defined(RTT_WAMR_BUILD_TARGET_ARMV4)
#define BUILD_TARGET "armv4"
#else
#error "unsupported aot platform."
#endif
#endif /* WASM_ENABLE_AOT */
typedef rt_thread_t korp_tid;
typedef struct rt_mutex korp_mutex;
typedef struct rt_thread korp_cond;