Skip to content
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

Pass /OPT:NOREF for DEBUG VS builds #93053

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

jakobbotsch
Copy link
Member

/OPT:REF will cause the linker to optimize out unused functions/statics, which is not desirable when debugging where you may want to be able to use and inspect those members from the debugger.

See #92993 for some more context.

/OPT:REF will cause the linker to optimize out unused functions/statics,
which is not desirable when debugging where you may want to be able to
use and inspect those members from the debugger.
@ghost
Copy link

ghost commented Oct 5, 2023

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

/OPT:REF will cause the linker to optimize out unused functions/statics, which is not desirable when debugging where you may want to be able to use and inspect those members from the debugger.

See #92993 for some more context.

Author: jakobbotsch
Assignees: jakobbotsch
Labels:

area-Infrastructure-coreclr

Milestone: -

Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jakobbotsch jakobbotsch merged commit 28c6415 into dotnet:main Oct 5, 2023
174 of 176 checks passed
@jakobbotsch jakobbotsch deleted the disable-opt-ref-in-debug branch October 5, 2023 19:12
@ghost ghost locked as resolved and limited conversation to collaborators Nov 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants