diff options
| author | ruki <[email protected]> | 2025-12-02 22:52:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-02 22:52:26 +0800 |
| commit | a3f3678d1705dac4106dc95883d264534db159e2 (patch) | |
| tree | da53e9eeb1689c79678f1e3488e6ec08382843f1 /xmake/rules/objc++ | |
| parent | 5c4b98ecca5a0c437a1bb5679e4046f752ed1a42 (diff) | |
improve objc configs
Diffstat (limited to 'xmake/rules/objc++')
| -rw-r--r-- | xmake/rules/objc++/config/main.lua | 10 | ||||
| -rw-r--r-- | xmake/rules/objc++/xmake.lua | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/xmake/rules/objc++/config/main.lua b/xmake/rules/objc++/config/main.lua index 45755edb8..43d2b0096 100644 --- a/xmake/rules/objc++/config/main.lua +++ b/xmake/rules/objc++/config/main.lua @@ -20,14 +20,18 @@ -- imports import("rules.objc++.config.basic", {rootdir = os.programdir(), alias = "config_basic"}) -import("rules.c++.config", {rootdir = os.programdir(), alias = "config_cxx"}) +import("rules.c++.config.optimization", {rootdir = os.programdir(), alias = "config_optimization"}) +import("rules.c++.config.sanitizer", {rootdir = os.programdir(), alias = "config_sanitizer"}) -- main entry function main(target, sourcekind) -- handle objc++ basic configs config_basic(target, sourcekind) - -- handle c++ configs (optimization, sanitizer, etc.) - config_cxx(target, sourcekind) + -- handle optimization.lto + config_optimization(target, sourcekind) + + -- handle sanitizer + config_sanitizer(target, sourcekind) end diff --git a/xmake/rules/objc++/xmake.lua b/xmake/rules/objc++/xmake.lua index 2ff0ecb8c..321aa131a 100644 --- a/xmake/rules/objc++/xmake.lua +++ b/xmake/rules/objc++/xmake.lua @@ -23,7 +23,6 @@ rule("objc.build") set_sourcekinds("mm") add_deps("objc.build.pcheader") on_config(function (target) - -- handle all configs import("rules.objc++.config")(target, "mm") end) on_build_files("private.action.build.object", {jobgraph = true, batch = true, distcc = true}) @@ -33,7 +32,6 @@ rule("objc++.build") set_sourcekinds("mxx") add_deps("objc++.build.pcheader") on_config(function (target) - -- handle all configs import("rules.objc++.config")(target, "mxx") end) on_build_files("private.action.build.object", {jobgraph = true, batch = true, distcc = true}) |
