mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 13:16:26 +00:00
MacOs: fix wamrc Error invaid llvm binary bin_type (#269)
* add darwin support for wamr-compiler compiling * add darwin support for wamr-compiler * Update CMakeLists.txt * MacOs: fix wamrc Error invaid llvm binary bin_type Co-authored-by: wenyongh <wenyong.huang@intel.com>
This commit is contained in:
parent
c182eebc6b
commit
e81f72d41f
|
@ -1394,7 +1394,11 @@ aot_resolve_target_info(AOTCompContext *comp_ctx, AOTObjectData *obj_data)
|
||||||
if (bin_type != LLVMBinaryTypeELF32L
|
if (bin_type != LLVMBinaryTypeELF32L
|
||||||
&& bin_type != LLVMBinaryTypeELF32B
|
&& bin_type != LLVMBinaryTypeELF32B
|
||||||
&& bin_type != LLVMBinaryTypeELF64L
|
&& bin_type != LLVMBinaryTypeELF64L
|
||||||
&& bin_type != LLVMBinaryTypeELF64B) {
|
&& bin_type != LLVMBinaryTypeELF64B
|
||||||
|
&& bin_type != LLVMBinaryTypeMachO32L
|
||||||
|
&& bin_type != LLVMBinaryTypeMachO32B
|
||||||
|
&& bin_type != LLVMBinaryTypeMachO64L
|
||||||
|
&& bin_type != LLVMBinaryTypeMachO64B) {
|
||||||
aot_set_last_error("invaid llvm binary bin_type.");
|
aot_set_last_error("invaid llvm binary bin_type.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user