summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/load_iphoneos.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/toolchains/xcode/load_iphoneos.lua')
-rw-r--r--xmake/toolchains/xcode/load_iphoneos.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/toolchains/xcode/load_iphoneos.lua b/xmake/toolchains/xcode/load_iphoneos.lua
index fc52d5f3c..0fda9704c 100644
--- a/xmake/toolchains/xcode/load_iphoneos.lua
+++ b/xmake/toolchains/xcode/load_iphoneos.lua
@@ -43,6 +43,8 @@ function main(toolchain)
-- init flags for objc/c++
toolchain:add("mxflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot)
+ -- we can use `add_mxflags("-fno-objc-arc")` to override it in xmake.lua
+ toolchain:add("mxflags", "-fobjc-arc")
-- init flags for asm
toolchain:add("asflags", "-arch", arch, target_minver_flags, "-isysroot", xcode_sysroot)