summaryrefslogtreecommitdiff
path: root/xmake/toolchains/mingw/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-20 00:43:53 +0800
committerruki <[email protected]>2020-06-19 22:23:22 +0800
commit01dd21d4f3bccda1ff18ad1213b959feeaae37eb (patch)
tree6e6d2203e3da29323d2919d32b80303e5e98d489 /xmake/toolchains/mingw/xmake.lua
parentf5392149886b2083ec0d6db2adef3da405297fe8 (diff)
improve toolchain arch/plat
Diffstat (limited to 'xmake/toolchains/mingw/xmake.lua')
-rw-r--r--xmake/toolchains/mingw/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/toolchains/mingw/xmake.lua b/xmake/toolchains/mingw/xmake.lua
index 2d246553a..e5603527f 100644
--- a/xmake/toolchains/mingw/xmake.lua
+++ b/xmake/toolchains/mingw/xmake.lua
@@ -39,9 +39,9 @@ toolchain("mingw")
-- get cross
local cross
- if is_arch("x86_64") then
+ if toolchain:is_arch("x86_64") then
cross = "x86_64-w64-mingw32-"
- elseif is_arch("i386") then
+ elseif toolchain:is_arch("i386") then
cross = "i686-w64-mingw32-"
else
cross = config.get("cross") or ""
@@ -75,7 +75,7 @@ toolchain("mingw")
-- init flags for architecture
local archflags = nil
- local arch = config.get("arch")
+ local arch = toolchain:arch()
if arch then
if arch == "x86_64" then archflags = "-m64"
elseif arch == "i386" then archflags = "-m32"