Skip to content

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.
@dotnet-policy-service
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