diff options
| author | ruki <[email protected]> | 2020-07-09 22:06:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-07-09 06:36:19 +0800 |
| commit | 57c15ee42343b7ca4c9b5b860aff9a27b266ae3d (patch) | |
| tree | 50ef27e845e86b8e4dcc5154f7aa54f149a3deb6 /xmake/toolchains/zig/xmake.lua | |
| parent | 519535ca82c093b011ccec2ba4c8378c117f72c0 (diff) | |
improve zig
Diffstat (limited to 'xmake/toolchains/zig/xmake.lua')
| -rw-r--r-- | xmake/toolchains/zig/xmake.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/toolchains/zig/xmake.lua b/xmake/toolchains/zig/xmake.lua index 2b67569a9..bae362a9b 100644 --- a/xmake/toolchains/zig/xmake.lua +++ b/xmake/toolchains/zig/xmake.lua @@ -33,4 +33,11 @@ toolchain("zig") -- on load on_load(function (toolchain) + local march + if is_plat("macosx") then + march = "x86_64-macosx-gnu" + end + if march then + toolchain:add("zcflags", "-target", march) + end end) |
