Skip to content

Commit 93192d9

Browse files
authored
Revert "Adapt System.CommandLine (v2) in more places (#72082)"
This reverts commit d0559e6.
1 parent fec8aeb commit 93192d9

File tree

12 files changed

+1196
-1370
lines changed

12 files changed

+1196
-1370
lines changed

src/coreclr/tools/Common/CommandLineHelpers.cs

Lines changed: 0 additions & 291 deletions
This file was deleted.

src/coreclr/tools/aot/ILCompiler.Compiler.Tests/DependencyGraphTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void TestDependencyGraphInvariants(EcmaMethod method)
7373
new FullyBlockedMetadataBlockingPolicy(), new FullyBlockedManifestResourceBlockingPolicy(),
7474
null, new NoStackTraceEmissionPolicy(), new NoDynamicInvokeThunkGenerationPolicy(),
7575
new ILLink.Shared.TrimAnalysis.FlowAnnotations(Logger.Null, ilProvider, compilerGeneratedState), UsageBasedMetadataGenerationOptions.None,
76-
Logger.Null, Array.Empty<KeyValuePair<string, bool>>(), Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>());
76+
Logger.Null, Array.Empty<KeyValuePair<string, bool>>(), Array.Empty<string>(), Array.Empty<string>());
7777

7878
CompilationBuilder builder = new RyuJitCompilationBuilder(context, compilationGroup)
7979
.UseILProvider(ilProvider);

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/UsageBasedMetadataManager.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public UsageBasedMetadataManager(
7979
Logger logger,
8080
IEnumerable<KeyValuePair<string, bool>> featureSwitchValues,
8181
IEnumerable<string> rootEntireAssembliesModules,
82-
IEnumerable<string> additionalRootedAssemblies,
8382
IEnumerable<string> trimmedAssemblies)
8483
: base(typeSystemContext, blockingPolicy, resourceBlockingPolicy, logFile, stackTracePolicy, invokeThunkGenerationPolicy)
8584
{
@@ -93,7 +92,6 @@ public UsageBasedMetadataManager(
9392
FeatureSwitches = new Dictionary<string, bool>(featureSwitchValues);
9493

9594
_rootEntireAssembliesModules = new HashSet<string>(rootEntireAssembliesModules);
96-
_rootEntireAssembliesModules.UnionWith(additionalRootedAssemblies);
9795
_trimmedAssemblies = new HashSet<string>(trimmedAssemblies);
9896
}
9997

src/coreclr/tools/aot/ILCompiler/ILCompiler.props

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,28 @@
8282
</ItemGroup>
8383

8484
<ItemGroup>
85-
<Compile Include="..\..\Common\CommandLineHelpers.cs" />
85+
<Compile Include="..\..\Common\CommandLine\Argument.cs" />
86+
<Compile Include="..\..\Common\CommandLine\Argument_1.cs" />
87+
<Compile Include="..\..\Common\CommandLine\ArgumentCommand.cs" />
88+
<Compile Include="..\..\Common\CommandLine\ArgumentCommand_1.cs" />
89+
<Compile Include="..\..\Common\CommandLine\ArgumentLexer.cs" />
90+
<Compile Include="..\..\Common\CommandLine\ArgumentList_1.cs" />
91+
<Compile Include="..\..\Common\CommandLine\ArgumentParser.cs" />
92+
<Compile Include="..\..\Common\CommandLine\ArgumentSyntax.cs" />
93+
<Compile Include="..\..\Common\CommandLine\ArgumentSyntax_Definers.cs" />
94+
<Compile Include="..\..\Common\CommandLine\ArgumentSyntaxException.cs" />
95+
<Compile Include="..\..\Common\CommandLine\ArgumentToken.cs" />
96+
<Compile Include="..\..\Common\CommandLine\CommandLineException.cs" />
97+
<Compile Include="..\..\Common\CommandLine\CommandLineHelpers.cs" />
98+
<Compile Include="..\..\Common\CommandLine\Enumerable.cs" />
99+
<Compile Include="..\..\Common\CommandLine\HelpTextGenerator.cs" />
86100
</ItemGroup>
87101

88102
<ItemGroup>
89-
<PackageReference Include="System.CommandLine" Version="$(SystemCommandLineVersion)" />
103+
<EmbeddedResource Include="..\..\Common\CommandLine\Resources\Strings.resx">
104+
<GenerateSource>true</GenerateSource>
105+
<ClassName>Internal.CommandLine.Strings</ClassName>
106+
</EmbeddedResource>
90107
</ItemGroup>
91108

92109
<ItemGroup>

0 commit comments

Comments
 (0)