summaryrefslogtreecommitdiff
path: root/xmake/toolchains/zig/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-26 00:56:28 +0800
committerruki <[email protected]>2021-01-26 00:56:28 +0800
commit80e24282f3cb15bb5cb4a61eabea2424b1466c92 (patch)
treedcd653a054f1c7927c9af968c99ddd7b49b96fed /xmake/toolchains/zig/xmake.lua
parent2bb2fac08d934d5611e2230948d6363a9dc581b2 (diff)
improve zigcc
Diffstat (limited to 'xmake/toolchains/zig/xmake.lua')
-rw-r--r--xmake/toolchains/zig/xmake.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/toolchains/zig/xmake.lua b/xmake/toolchains/zig/xmake.lua
index e6e70012c..5f00a0e0d 100644
--- a/xmake/toolchains/zig/xmake.lua
+++ b/xmake/toolchains/zig/xmake.lua
@@ -44,6 +44,8 @@ toolchain("zig")
march = toolchain:is_arch("x86") and "i386-linux-gnu" or "x86_64-linux-gnu"
elseif toolchain:is_plat("windows") then
march = toolchain:is_arch("x86") and "i386-windows-msvc" or "x86_64-windows-msvc"
+ elseif toolchain:is_plat("mingw") then
+ march = toolchain:is_arch("x86") and "i386-windows-gnu" or "x86_64-windows-gnu"
end
if march then
toolchain:add("zcflags", "-target", march)