summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-07-09 22:08:08 +0800
committerruki <[email protected]>2020-07-09 06:48:49 +0800
commit65563d6430e47992c78f5e53d7f771f741fe7c20 (patch)
treeff1b118afd733bd26617cce6aa8ac1e87248628c
parent178e7031a3176c5fb3d45098ee18a45794fe9002 (diff)
support zig for linux
-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 bae362a9b..e46925376 100644
--- a/xmake/toolchains/zig/xmake.lua
+++ b/xmake/toolchains/zig/xmake.lua
@@ -36,6 +36,8 @@ toolchain("zig")
local march
if is_plat("macosx") then
march = "x86_64-macosx-gnu"
+ elseif is_plat("linux") then
+ march = "x86_64-linux-gnu"
end
if march then
toolchain:add("zcflags", "-target", march)