From a88b0246d856ffac9dfa509d07631dc02fedbc67 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 7 Dec 2025 15:17:57 +0800 Subject: improve bin2coff --- core/src/xmake/utils/bin2coff.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.3.1