Uh oh!
There was an error while loading. Please reload this page.
[NativeAOT] Refactor System.Linq.Expressions feature switches - #89308
Conversation
ghost
commented
Jul 21, 2023
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsThis PR:
PS: If desired, I can pull out all the other explicit feature switches to the and friends Fixes #89171 /cc @dotnet/ilc-contrib
|
MichalStrehovsky
commented
Jul 25, 2023
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 |
ivanpovazan
commented
Jul 25, 2023
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ivanpovazan
commented
Jul 25, 2023
Failures seem unrelated. |
This PR:
System.Linq.Expressions.dll:CanCompileToILandCanCreateArbitraryDelegatesas they are now respectingIsDynamicCodeSupported:runtime/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/LambdaExpression.cs
Line 29 in 7982376
runtime/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/Interpreter/CallInstruction.cs
Line 19 in 7982376
CanEmitObjectArrayDelegateinto theRuntimeHostConfigurationOptionitem so other tools (like ILLink) can can also understand the desired trimming configurationSystem.Linq.Expressionssupport with Xamarin+NativeAOT asCanEmitObjectArrayDelegategets removed during ILLink trimming due to constant propagation, which makes the property not visible when it reaches ILCompiler during the build processPS: If desired, I can pull out all the other explicit feature switches to the
RuntimeHostConfigurationOptionlike:runtime/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
Line 275 in 7982376
and friends
Fixes#89171
/cc @dotnet/ilc-contrib