File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 45
45
function _translate_plat (plat , arch , opt )
46
46
if plat == " windows" then
47
47
return " -pc-windows-msvc"
48
- elseif plat == " mingw" then
48
+ elseif plat == " mingw" or plat == " msys " then
49
49
return " -pc-windows-gnu"
50
- elseif plat == " linux" then
50
+ elseif plat == " linux" or plat == " cross " then
51
51
return " -unknown-linux-gnu"
52
52
elseif plat == " macosx" then
53
53
return " -apple-darwin"
Original file line number Diff line number Diff line change 21
21
-- imports
22
22
import (" core.base.option" )
23
23
import (" core.project.config" )
24
+ import (" core.tools.rustc.target_triple" )
24
25
import (" lib.detect.find_tool" )
25
26
import (" private.tools.rust.check_target" )
26
- import (" private.tools.rust.target_triple" )
27
27
28
28
-- translate local path in dependencies
29
29
-- @see https://github.com/xmake-io/xmake/issues/4222
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ toolchain("rust")
28
28
set_toolset (" rcar" , " $(env RC)" , " rustc" )
29
29
30
30
on_load (function (toolchain )
31
- import (" private .tools.rust .target_triple" )
31
+ import (" core .tools.rustc .target_triple" )
32
32
33
33
local opt = {}
34
34
if toolchain :config (" appledev" ) == " simulator" then
You can’t perform that action at this time.
0 commit comments