diff options
| author | ruki <[email protected]> | 2023-08-09 13:35:49 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-09 13:35:49 +0800 |
| commit | cc8c1a35e4b1dd6053b86fd279ce263cffc96321 (patch) | |
| tree | f6682ffaceb907be68b200d4057c711efbed1ee1 /xmake/toolchains/xcode/load_macosx.lua | |
| parent | 4182b1a29d085d59e1aca2389a2fc7ec53451885 (diff) | |
| parent | ef2ba39e335136945cec07d04bd5da4bcd1725a8 (diff) | |
Merge pull request #4052 from xmake-io/rust
Improve rust to support cross build deps
Diffstat (limited to 'xmake/toolchains/xcode/load_macosx.lua')
| -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 |
