Skip to content

Commit

Permalink
Merge pull request xmake-io#3961 from calebkiage/msys-ucrt64
Browse files Browse the repository at this point in the history
Fix mingw detection in ucrt64 environment
  • Loading branch information
waruqi authored Jul 13, 2023
2 parents d6bed2c + 1b4ba26 commit 8ea20fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/xmake/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ static tb_void_t xm_engine_init_host(xm_engine_t* engine)
// 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, "ucrt64") // ucrt64 https://www.msys2.org/docs/environments/
|| !tb_stricmp(data, "msys")) // on msys2
subhost = "msys";
}
Expand Down

0 comments on commit 8ea20fc

Please sign in to comment.