Enable AOT usage on M1 mac (#2618)

This commit is contained in:
Enrico Loparco
2023-10-07 08:05:10 +00:00
committed by GitHub
parent 1ef7c1c83d
commit 3668093053
19 changed files with 105 additions and 0 deletions

View File

@ -53,7 +53,12 @@ get_target_symbol_map(uint32 *sym_num)
return target_sym_map;
}
#if (defined(__APPLE__) || defined(__MACH__)) && defined(__arm64__)
#define BUILD_TARGET_AARCH64_DEFAULT "arm64"
#else
#define BUILD_TARGET_AARCH64_DEFAULT "aarch64v8"
#endif
void
get_current_target(char *target_buf, uint32 target_buf_size)
{