RuiChen_01 3bbbfedc6e perf(build): enable size_optimize_config on 130 SO targets
Add a new services/common:size_optimize_config (same flags as
optimize_config minus the explicit -flto=full, so the toolchain's
global ThinLTO mode is preserved) and apply it to the 130
ohos_shared_library targets that previously shipped without any
optimization config, so unreferenced functions/data are dropped at
link time and ROM shrinks without overriding the global LTO policy.

-Wl,--gc-sections is an ELF-only linker flag: Apple ld rejects it, so
both optimize_config and size_optimize_config now add it only when
current_os != "mac", keeping the darwin SDK host build (which links
dylibs with -dead_strip) working.

Co-Authored-By: Agent
Signed-off-by: RuiChen_01 <chenrui193@huawei.com>

AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%]
Co-authored-by: claude (glm-5.3) <ai@local>
2026-08-21 17:24:00 +08:00
2026-08-10 15:41:50 +08:00
2026-07-15 19:32:31 +08:00
2026-08-04 09:45:25 +08:00
2022-07-05 17:15:19 +08:00
2026-08-05 14:46:08 +08:00
2026-08-17 17:46:12 +08:00
2021-06-02 02:20:34 +08:00
2026-07-04 17:43:09 +08:00
2021-06-02 02:20:34 +08:00
2026-03-21 21:40:43 +08:00
2026-08-11 15:33:52 +08:00
2026-06-27 09:54:20 +08:00
2022-06-30 15:32:07 +08:00
2026-03-04 11:03:50 +08:00
2024-06-07 10:32:48 +08:00
S
Description
暂无描述
145 MiB
Languages
C++ 98.1%
C 1.5%
JavaScript 0.2%
TypeScript 0.1%