summaryrefslogtreecommitdiff
path: root/xmake/rules/objc++/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-02 00:14:48 +0800
committerruki <[email protected]>2022-07-02 00:14:48 +0800
commit5ab2328f67ab5af0930d5a84bb032c3c18549ef0 (patch)
treea6b9b2c67a48e117cc43f7870653c53b1c221bbc /xmake/rules/objc++/xmake.lua
parentdbdb5bd1fef50c553f017ca473603c049daba4db (diff)
enable lto for objc
Diffstat (limited to 'xmake/rules/objc++/xmake.lua')
-rw-r--r--xmake/rules/objc++/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/objc++/xmake.lua b/xmake/rules/objc++/xmake.lua
index 8a560f780..65ba757b8 100644
--- a/xmake/rules/objc++/xmake.lua
+++ b/xmake/rules/objc++/xmake.lua
@@ -21,7 +21,7 @@
-- define rule: objc.build
rule("objc.build")
set_sourcekinds("mm")
- add_deps("c.build.pcheader")
+ add_deps("c.build.pcheader", "c.build.optimization")
after_load(function (target)
-- deprecated, we need only use `add_mflags("-fno-objc-arc")` to override it
if target:values("objc.build.arc") == false then
@@ -36,7 +36,7 @@ rule("objc.build")
-- define rule: objc++.build
rule("objc++.build")
set_sourcekinds("mxx")
- add_deps("c++.build.pcheader")
+ add_deps("c++.build.pcheader", "c++.build.optimization")
after_load(function (target)
-- deprecated, we need only use `add_mxxflags("-fno-objc-arc")` to override it
if target:values("objc++.build.arc") == false then