Enable to build wamrc with custom llvm and fix some compile warnings (#672)
Enable to build wamrc with custom llvm, enable to auto detect processor on apple silicon, and fix some compile warnings. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
@ -339,8 +339,7 @@ static os_thread_local_attribute uint8 *sigalt_stack_base_addr;
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang optimize off
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize("O0")
|
||||
__attribute__((no_sanitize_address))
|
||||
@ -361,11 +360,10 @@ touch_pages(uint8 *stack_min_addr, uint32 page_size)
|
||||
}
|
||||
return sum;
|
||||
}
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC pop_options
|
||||
#endif
|
||||
#if defined(__clang__)
|
||||
#pragma clang optimize on
|
||||
#elif defined(__GNUC__)
|
||||
#pragma GCC pop_options
|
||||
#endif
|
||||
|
||||
static bool
|
||||
|
||||
@ -19,7 +19,7 @@ typedef struct _app_timer {
|
||||
bool is_periodic;
|
||||
} app_timer_t;
|
||||
|
||||
typedef struct _timer_ctx {
|
||||
struct _timer_ctx {
|
||||
app_timer_t *app_timers;
|
||||
app_timer_t *idle_timers;
|
||||
app_timer_t *free_timers;
|
||||
@ -33,7 +33,7 @@ typedef struct _timer_ctx {
|
||||
|
||||
timer_callback_f timer_callback;
|
||||
check_timer_expiry_f refresh_checker;
|
||||
} *timer_ctx_t;
|
||||
};
|
||||
|
||||
uint64
|
||||
bh_get_tick_ms()
|
||||
|
||||
Reference in New Issue
Block a user