mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:21:38 +00:00
[CMAKE] MSVC cmake settings improvements.
- Always use string pooling when building: this helps reducing the size of the binaries due to string redundancy coming from the usage of __FILE__ / __RELFILE__ in the debugging helper macros. Note also that GCC builds use string pooling by default. - Use suitable add_compile_flags() command. - Add some explanative comments for some settings. Some numbers (obtained with my local builds): Before / After => Reduction =========================== freeldr.sys : 443 KB ( 453.632 bytes) / 364 KB ( 372.736 bytes) => ~ 18% win32k.sys : 1877 KB (1.922.048 bytes) / 1562 KB (1.599.488 bytes) => ~ 17% ntoskrnl.exe : 2253 KB (2.307.072 bytes) / 1902 KB (1.947.136 bytes) => ~ 15.6% kernel32.dll : 3008 KB (3.080.192 bytes) / 2906 KB (2.975.744 bytes) => ~ 3.4%
This commit is contained in:
parent
363f5f26b1
commit
5e673f3118
3 changed files with 21 additions and 10 deletions
|
@ -6,7 +6,7 @@ set(OARCH "athlon64" CACHE STRING
|
|||
"Generate instructions for this CPU type. Specify one of:
|
||||
k8 opteron athlon64 athlon-fx")
|
||||
|
||||
set (OPTIMIZE "1" CACHE STRING
|
||||
set(OPTIMIZE "1" CACHE STRING
|
||||
"What level of optimization to use.
|
||||
0 = off
|
||||
1 = Default option, optimize for size (-Os) with some additional options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue