summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/utils/bin2coff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/utils/bin2coff.c b/core/src/xmake/utils/bin2coff.c
index 25c54035c..976f18202 100644
--- a/core/src/xmake/utils/bin2coff.c
+++ b/core/src/xmake/utils/bin2coff.c
@@ -113,6 +113,8 @@ static tb_uint16_t xm_utils_bin2coff_get_machine(tb_char_t const *arch) {
return XM_COFF_MACHINE_ARM64;
} else if (tb_strcmp(arch, "arm") == 0) {
return XM_COFF_MACHINE_ARM;
+ } else if (tb_strcmp(arch, "i386") == 0 || tb_strcmp(arch, "x86") == 0) {
+ return XM_COFF_MACHINE_I386;
}
return XM_COFF_MACHINE_I386;
}