From 0ba673bb80583c8aab3a94deaa9973b903473422 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 27 Jan 2021 00:51:56 +0800 Subject: improve zig --- xmake/modules/core/tools/zig_cc.lua | 3 +-- xmake/toolchains/zig/xmake.lua | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/xmake/modules/core/tools/zig_cc.lua b/xmake/modules/core/tools/zig_cc.lua index 91a5c75bb..8d235c818 100644 --- a/xmake/modules/core/tools/zig_cc.lua +++ b/xmake/modules/core/tools/zig_cc.lua @@ -31,8 +31,7 @@ function init(self) if not self:program():find("target", 1, true) then local march if is_plat("macosx") then - -- FIXME - --march = is_arch("x86") and "i386-macosx-gnu" or "x86_64-macosx-gnu" + march = is_arch("x86") and "i386-macos-gnu" or "x86_64-macos-gnu" elseif is_plat("linux") then march = is_arch("x86") and "i386-linux-gnu" or "x86_64-linux-gnu" elseif is_plat("windows") then diff --git a/xmake/toolchains/zig/xmake.lua b/xmake/toolchains/zig/xmake.lua index 94a21518a..00e5d4ca8 100644 --- a/xmake/toolchains/zig/xmake.lua +++ b/xmake/toolchains/zig/xmake.lua @@ -31,8 +31,7 @@ toolchain("zig") -- init march local march if toolchain:is_plat("macosx") then - -- FIXME - --march = toolchain:is_arch("x86") and "i386-macosx-gnu" or "x86_64-macosx-gnu" + march = toolchain:is_arch("x86") and "i386-macos-gnu" or "x86_64-macos-gnu" elseif toolchain:is_plat("linux") then march = toolchain:is_arch("x86") and "i386-linux-gnu" or "x86_64-linux-gnu" elseif toolchain:is_plat("windows") then -- cgit v1.3.1