diff options
| author | ruki <[email protected]> | 2021-01-27 22:34:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-27 22:34:26 +0800 |
| commit | abaaa6c248d7b0a92a289e00b76d5da53802cd2b (patch) | |
| tree | f395d2eedaa30211f99b0c2a926b36802c6cd9a1 /xmake/modules/core/tools/zig_cc.lua | |
| parent | 0ba673bb80583c8aab3a94deaa9973b903473422 (diff) | |
improve zig
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 |
