mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-11 16:35:33 +00:00
Fix AOT compilation on MacOS (#3102)
After #2995, AOT may stop working properly on arm MacOS: ```bash wasm-micro-runtime/core/iwasm/common/wasm_runtime_common.c, line 1270, WASM module load failed AOT module load failed: mmap memory failed ``` That's because, without `#include <TargetConditionals.h>`, `TARGET_OS_OSX` is undefined, since it's definition is in that header file.
This commit is contained in:
parent
51e25ef01f
commit
dfd2a5b0b4
|
@ -7,6 +7,7 @@
|
|||
|
||||
#if defined(__APPLE__) || defined(__MACH__)
|
||||
#include <libkern/OSCacheControl.h>
|
||||
#include <TargetConditionals.h>
|
||||
#endif
|
||||
|
||||
#ifndef BH_ENABLE_TRACE_MMAP
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
#include "platform_api_vmcore.h"
|
||||
#include "platform_api_extension.h"
|
||||
|
||||
#if defined(__APPLE__) || defined(__MACH__)
|
||||
#include <TargetConditionals.h>
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
thread_start_routine_t start;
|
||||
void *arg;
|
||||
|
|
Loading…
Reference in New Issue
Block a user