diff options
Diffstat (limited to 'xmake/modules/core/tools/zig_cc.lua')
| -rw-r--r-- | xmake/modules/core/tools/zig_cc.lua | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/xmake/modules/core/tools/zig_cc.lua b/xmake/modules/core/tools/zig_cc.lua index 8d235c818..1e263a4f6 100644 --- a/xmake/modules/core/tools/zig_cc.lua +++ b/xmake/modules/core/tools/zig_cc.lua @@ -21,28 +21,3 @@ -- inherit gcc inherit("gcc") --- init it -function init(self) - - -- init super - _super.init(self) - - -- patch target - if not self:program():find("target", 1, true) then - local march - if is_plat("macosx") then - 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 - march = is_arch("x86") and "i386-windows-msvc" or "x86_64-windows-msvc" - elseif is_plat("mingw") then - march = is_arch("x86") and "i386-windows-gnu" or "x86_64-windows-gnu" - end - if march then - self:add("cxflags", "-target", march) - self:add("ldflags", "-target", march) - self:add("shflags", "-target", march) - end - end -end |
