-
Notifications
You must be signed in to change notification settings - Fork 591
Open
Labels
Description
Description
The Windows Cake build script passes /DEBUG:FULL
in all configuration in the linker args which disables linker optimizations like removal of unused code or identical code folding as per:
/DEBUG changes the defaults for the /OPT option from REF to NOREF and from ICF to NOICF, so if you want the original defaults, you must explicitly specify /OPT:REF or /OPT:ICF after the /DEBUG option.
I believe the script should reenable those to reduce release build sizes.
Code
SkiaSharp/native/windows/build.cake
Line 62 in 481369a
$"extra_ldflags=[ '/DEBUG:FULL', '/DEBUGTYPE:CV,FIXUP' ] " + |
Expected Behavior
/OPT:REF
and /OPT:ICF
get passed to the linker on build.
Actual Behavior
Only /DEBUG:FULL
seems to be passed.
Version of SkiaSharp
3.118.0-preview.2 (Next Preview)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Other (Please indicate in the description)
Platform / Operating System
Windows
Platform / Operating System Version
No response
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
New