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

[NativeAOT] Refactor System.Linq.Expressions feature switches #89308

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

ivanpovazan
Copy link
Member

@ivanpovazan ivanpovazan commented Jul 21, 2023

This PR:

PS: If desired, I can pull out all the other explicit feature switches to the RuntimeHostConfigurationOption like:

<IlcArg Condition="$(IlcDisableReflection) == 'true'" Include="--feature:System.Reflection.IsReflectionExecutionAvailable=false" />

and friends


Fixes #89171

/cc @dotnet/ilc-contrib

@ghost
Copy link

ghost commented Jul 21, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

This PR:

PS: If desired, I can pull out all the other explicit feature switches to the RuntimeHostConfigurationOption like:

<IlcArg Condition="$(IlcDisableReflection) == 'true'" Include="--feature:System.Reflection.IsReflectionExecutionAvailable=false" />

and friends


Fixes #89171

/cc @dotnet/ilc-contrib

Author: ivanpovazan
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

@MichalStrehovsky
Copy link
Member

PS: If desired, I can pull out all the other explicit feature switches

Let's not do that unless necessary. Promoting this to RuntimeHostConfigurationOption is more lines of code, and also a tiny size regression (the compiler is also required to promote these to AppContext switches at runtime), whereas --feature is only processed at compile time.

@ivanpovazan
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ivanpovazan
Copy link
Member Author

Failures seem unrelated.

@ivanpovazan ivanpovazan merged commit 57aeadb into dotnet:main Jul 25, 2023
178 of 213 checks passed
@ivanpovazan ivanpovazan deleted the refactor-linq-expr-switches branch July 25, 2023 11:35
ivanpovazan added a commit to ivanpovazan/runtime that referenced this pull request Jul 28, 2023
MichalStrehovsky pushed a commit that referenced this pull request Jul 31, 2023
…s according to the recent refactoring (#89638)

Properly implement substitutions according to the recent refactoring #89308
@ghost ghost locked as resolved and limited conversation to collaborators Aug 24, 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.

[NativeAOT] Refactor System.Linq.Expressions private feature switches
2 participants