summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-02 20:32:53 +0800
committerGitHub <[email protected]>2022-07-02 20:32:53 +0800
commit0e77badced0a9e0c9e8aec10fb6c4f324616078c (patch)
tree47d6fe4a8adb8864ceddd896a127fb3e9d889465 /xmake/rules/c++/xmake.lua
parent5708a5c03d35f8761c3d6d07bbb3f6149a879f23 (diff)
parentbec05e2418d6c2055cd729b7b4e0de7210091473 (diff)
Merge pull request #2523 from xmake-io/lto
Add better LTO support
Diffstat (limited to 'xmake/rules/c++/xmake.lua')
-rw-r--r--xmake/rules/c++/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/xmake.lua b/xmake/rules/c++/xmake.lua
index 4fd167722..9ec8f57c4 100644
--- a/xmake/rules/c++/xmake.lua
+++ b/xmake/rules/c++/xmake.lua
@@ -25,7 +25,7 @@ rule("c.build.pcheader")
rule("c.build")
set_sourcekinds("cc")
- add_deps("c.build.pcheader")
+ add_deps("c.build.pcheader", "c.build.optimization")
on_build_files("private.action.build.object", {batch = true, distcc = true})
rule("c++.build.pcheader")
@@ -35,7 +35,7 @@ rule("c++.build.pcheader")
rule("c++.build")
set_sourcekinds("cxx")
- add_deps("c++.build.pcheader", "c++.build.modules")
+ add_deps("c++.build.pcheader", "c++.build.modules", "c++.build.optimization")
on_build_files("private.action.build.object", {batch = true, distcc = true})
rule("c++")