diff options
| author | ruki <[email protected]> | 2023-08-09 00:45:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-08-09 00:45:21 +0800 |
| commit | d56fd4e78dd1d5a64409df3b8c889a54a4f740eb (patch) | |
| tree | fa70ae50d2aca8f0b198a7d4c3ad3360da8acfee /xmake/toolchains/xcode | |
| parent | 04ff2a200ba3be2334827b3fe0385038aee9c090 (diff) | |
use arch to select target
Diffstat (limited to 'xmake/toolchains/xcode')
| -rw-r--r-- | xmake/toolchains/xcode/load_macosx.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/toolchains/xcode/load_macosx.lua b/xmake/toolchains/xcode/load_macosx.lua index 69afce0e9..fb7c3d615 100644 --- a/xmake/toolchains/xcode/load_macosx.lua +++ b/xmake/toolchains/xcode/load_macosx.lua @@ -78,7 +78,8 @@ function main(toolchain) -- init flags for c/c++ toolchain:add("ldflags", "-stdlib=libc++") toolchain:add("shflags", "-stdlib=libc++") - toolchain:add("syslinks", "z") + toolchain:add("ldflags", "-lz") + toolchain:add("shflags", "-lz") -- init flags for objc/c++ (with ldflags and shflags) -- we can use `add_mxflags("-fno-objc-arc")` to override it in xmake.lua |
