-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add support for ifdefs when generating link descriptor #51562
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
Conversation
Simply passes the defines to the custom task. Had to add one feature define which was missing.
|
Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer Issue DetailsSimply passes the defines to the custom task. Had to add one feature define which was missing. This is the dotnet/runtime part of the fix for dotnet/linker#1973.
|
|
This is currently blocked on the mono/linker counterpart which is in: dotnet/linker#1980 |
|
I verified that on Linux all of the |
| <_RexcepFilePath Condition=" '$(_RexcepFilePath)' == '' ">$(MSBuildThisFileDirectory)..\vm\rexcep.h</_RexcepFilePath> | ||
| <_ILLinkDescriptorsIntermediatePath>$(IntermediateOutputPath)ILLink.Descriptors.Combined.xml</_ILLinkDescriptorsIntermediatePath> | ||
| <_DefineConstants>$(DefineConstants)</_DefineConstants> | ||
| <_DefineConstants Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Checked'">$(DefineConstants);_DEBUG</_DefineConstants> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come this isn't handled by the existing infrastructure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on binlogs we only define DEBUG for managed code. _DEBUG seems to be only defined in native.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to just fix the corelib.h to use DEBUG instead of _DEBUG.
|
This should contribute to #40336 (at a minimum). Will it completely solve it? |
…corelib. Basically a port of #51562 including changes as per PR feedback.
|
Changes from the PR including the feedback has been merged as part of the mono/linker update in #51921. It was just logistically easier to do than create an intermediate state where linker task is new and runtime is old and still make that work. |
Simply passes the defines to the custom task. Had to add one feature define which was missing.
This is the dotnet/runtime part of the fix for dotnet/linker#1973.