Skip to content

Commit e0b4e4e

Browse files
committed
rustc/target_triple: Handle msys and cross
1 parent 2f886d8 commit e0b4e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xmake/modules/core/tools/rustc/target_triple.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ end
4545
function _translate_plat(plat, arch, opt)
4646
if plat == "windows" then
4747
return "-pc-windows-msvc"
48-
elseif plat == "mingw" then
48+
elseif plat == "mingw" or plat == "msys" then
4949
return "-pc-windows-gnu"
50-
elseif plat == "linux" then
50+
elseif plat == "linux" or plat == "cross" then
5151
return "-unknown-linux-gnu"
5252
elseif plat == "macosx" then
5353
return "-apple-darwin"

0 commit comments

Comments
 (0)