Skip to content

Commit e81f72d

Browse files
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 <[email protected]>
1 parent c182eeb commit e81f72d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/iwasm/compilation/aot_emit_aot_file.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,11 @@ aot_resolve_target_info(AOTCompContext *comp_ctx, AOTObjectData *obj_data)
13941394
if (bin_type != LLVMBinaryTypeELF32L
13951395
&& bin_type != LLVMBinaryTypeELF32B
13961396
&& bin_type != LLVMBinaryTypeELF64L
1397-
&& bin_type != LLVMBinaryTypeELF64B) {
1397+
&& bin_type != LLVMBinaryTypeELF64B
1398+
&& bin_type != LLVMBinaryTypeMachO32L
1399+
&& bin_type != LLVMBinaryTypeMachO32B
1400+
&& bin_type != LLVMBinaryTypeMachO64L
1401+
&& bin_type != LLVMBinaryTypeMachO64B) {
13981402
aot_set_last_error("invaid llvm binary bin_type.");
13991403
return false;
14001404
}

0 commit comments

Comments
 (0)