Skip to content

Enable Windows linker optimizations in Release #3241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MichalPetryka
Copy link

Description of Change

As per the docs:

/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.

Since the scripts enabled DEBUG even in release, those should be reenabled to reduce binary size.

No tests due to being a build configuration only change.

Bugs Fixed

API Changes

None.

Behavioral Changes

Possibly slightly regressed debugging experience of release binaries.

Required skia PR

None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation

As per the docs:
```
/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.
```
Since the scripts enabled DEBUG even in release, those should be reenabled to reduce binary size.
Copy link
Contributor

Hey there @@MichalPetryka! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[BUG] libSkiaSharp.dll gets build with /DEBUG:FULL without reenabling linker opts
1 participant