diff options
| author | ruki <[email protected]> | 2025-12-07 15:17:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-07 17:16:00 +0800 |
| commit | a88b0246d856ffac9dfa509d07631dc02fedbc67 (patch) | |
| tree | 97da7c0463154cc7890ae67f4fc048f98972ec35 /core/src | |
| parent | ef01b10b71166de390f8ca2add93639705416f4f (diff) | |
improve bin2coff
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/utils/bin2coff.c | 2 |
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; } |
