diff options
| author | ruki <[email protected]> | 2022-11-16 00:43:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-11-16 00:43:14 +0800 |
| commit | 15048d88dc9bd1a6957cba2edd3983fcfeaca3d7 (patch) | |
| tree | f38e68e680c4edb08f84a6255d913039d37c650e /core/src | |
| parent | 736765d9139db675e904789664391c52c455ea48 (diff) | |
improve to detect msys2 for clang #3060
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/engine.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index 4331fa715..9fc13f4a5 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -895,8 +895,10 @@ static tb_void_t xm_engine_init_host(xm_engine_t* engine) tb_char_t data[64] = {0}; if (tb_environment_first("MSYSTEM", data, sizeof(data))) { - // on msys or msys/mingw64 or msys/mingw32? - if (!tb_strnicmp(data, "mingw", 5) || !tb_stricmp(data, "msys")) + // on msys? + if (!tb_strnicmp(data, "mingw", 5) // mingw32/64 on msys2 + || !tb_strnicmp(data, "clang", 5) // clang32/64 on msys2, @see https://github.com/xmake-io/xmake/issues/3060 + || !tb_stricmp(data, "msys")) // on msys2 subhost = "msys"; } } |
