diff options
| author | ruki <[email protected]> | 2021-01-26 00:56:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-26 00:56:28 +0800 |
| commit | 80e24282f3cb15bb5cb4a61eabea2424b1466c92 (patch) | |
| tree | dcd653a054f1c7927c9af968c99ddd7b49b96fed /xmake/toolchains/zig/xmake.lua | |
| parent | 2bb2fac08d934d5611e2230948d6363a9dc581b2 (diff) | |
improve zigcc
Diffstat (limited to 'xmake/toolchains/zig/xmake.lua')
| -rw-r--r-- | xmake/toolchains/zig/xmake.lua | 2 |
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) |
