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:
dpinthinker 2020-05-31 12:40:12 +08:00 committed by GitHub
parent c182eebc6b
commit e81f72d41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }