From d56fd4e78dd1d5a64409df3b8c889a54a4f740eb Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 9 Aug 2023 00:45:21 +0800 Subject: use arch to select target --- xmake/toolchains/xcode/load_macosx.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/toolchains/xcode') 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 -- cgit v1.3.1