From f1b9fd220acfa8c65fedb4548ac56a99105f7514 Mon Sep 17 00:00:00 2001 From: Ivan Povazan Date: Fri, 28 Jul 2023 14:58:36 +0200 Subject: [PATCH 1/3] Properly implement substitutions according to the recent refactoring https://github.com/dotnet/runtime/pull/89308 --- .../src/ILLink/ILLink.Substitutions.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libraries/System.Linq.Expressions/src/ILLink/ILLink.Substitutions.xml b/src/libraries/System.Linq.Expressions/src/ILLink/ILLink.Substitutions.xml index b64cc2d765d67..600116ec2ba08 100644 --- a/src/libraries/System.Linq.Expressions/src/ILLink/ILLink.Substitutions.xml +++ b/src/libraries/System.Linq.Expressions/src/ILLink/ILLink.Substitutions.xml @@ -1,7 +1,13 @@ + + + + + + From 289712bb75d244201e39748b57d56911d196abf7 Mon Sep 17 00:00:00 2001 From: Ivan Povazan Date: Fri, 28 Jul 2023 15:04:19 +0200 Subject: [PATCH 2/3] Remove unused feature switches from repro.csproj --- src/coreclr/tools/aot/ILCompiler/repro/repro.csproj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/coreclr/tools/aot/ILCompiler/repro/repro.csproj b/src/coreclr/tools/aot/ILCompiler/repro/repro.csproj index 131ddbd3b2257..5e3c3d49ec4fb 100644 --- a/src/coreclr/tools/aot/ILCompiler/repro/repro.csproj +++ b/src/coreclr/tools/aot/ILCompiler/repro/repro.csproj @@ -37,9 +37,8 @@ - - + Date: Fri, 28 Jul 2023 16:02:32 +0200 Subject: [PATCH 3/3] Remove unused feature switches from Mono.Linker.Tests --- .../TestCasesRunner/ILCompilerOptionsBuilder.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/coreclr/tools/aot/Mono.Linker.Tests/TestCasesRunner/ILCompilerOptionsBuilder.cs b/src/coreclr/tools/aot/Mono.Linker.Tests/TestCasesRunner/ILCompilerOptionsBuilder.cs index ce47eb5bbbae8..196fd5fec3a2a 100644 --- a/src/coreclr/tools/aot/Mono.Linker.Tests/TestCasesRunner/ILCompilerOptionsBuilder.cs +++ b/src/coreclr/tools/aot/Mono.Linker.Tests/TestCasesRunner/ILCompilerOptionsBuilder.cs @@ -41,9 +41,8 @@ public ILCompilerOptionsBuilder (TestCaseMetadataProvider metadataProvider) Options.FeatureSwitches.Add ("System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization", false); Options.FeatureSwitches.Add ("System.Resources.ResourceManager.AllowCustomResourceTypes", false); - Options.FeatureSwitches.Add ("System.Linq.Expressions.CanCompileToIL", false); Options.FeatureSwitches.Add ("System.Linq.Expressions.CanEmitObjectArrayDelegate", false); - Options.FeatureSwitches.Add ("System.Linq.Expressions.CanCreateArbitraryDelegates", false); + Options.FeatureSwitches.Add ("System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported", false); Options.FeatureSwitches.Add ("System.Diagnostics.Debugger.IsSupported", false); Options.FeatureSwitches.Add ("System.Text.Encoding.EnableUnsafeUTF7Encoding", false); Options.FeatureSwitches.Add ("System.Diagnostics.Tracing.EventSource.IsSupported", false);