diff options
| author | ruki <[email protected]> | 2020-02-16 10:05:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-16 10:05:54 +0800 |
| commit | 941da42aca3e9af717c4bd789e1c5dd0409170dd (patch) | |
| tree | dced180f39a886aea882981430e337700f82fa17 /core/src | |
| parent | 48921af4ec54a85e6951a7171cf82979ab2a09e7 (diff) | |
fix mingw32 arch
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/machine.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index 5826a93b2..9033dc9d1 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -665,7 +665,12 @@ static tb_void_t xm_machine_init_arch(xm_machine_t* machine) // get architecture from msys environment tb_char_t data[64] = {0}; if (tb_environment_first("MSYSTEM_CARCH", data, sizeof(data))) - subarch = data; + { + if (!tb_strcmp(data, "i686")) + subarch = "i386"; + else + subarch = data; + } #endif lua_pushstring(machine->lua, subarch); lua_setglobal(machine->lua, "_SUBARCH"); |
