Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/tools/aot/crossgen2/Crossgen2RootCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ internal class Crossgen2RootCommand : RootCommand
new("--optimize-space", "--Os") { Description = SR.OptimizeSpaceOption };
public Option<bool> OptimizeTime { get; } =
new("--optimize-time", "--Ot") { Description = SR.OptimizeSpeedOption };
public Option<bool> EnableCachedInterfaceDispatchSupport { get; } =
public Option<bool?> EnableCachedInterfaceDispatchSupport { get; } =
new("--enable-cached-interface-dispatch-support", "--CID") { Description = SR.EnableCachedInterfaceDispatchSupport };
public Option<TypeValidationRule> TypeValidation { get; } =
new("--type-validation") { DefaultValueFactory = _ => TypeValidationRule.Automatic, Description = SR.TypeValidation, HelpName = "arg" };
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/tools/aot/crossgen2/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ private void RunSingleCompilation(Dictionary<string, string> inFilePaths, Instru
nodeFactoryFlags.TypeValidation = Get(_command.TypeValidation);
nodeFactoryFlags.DeterminismStress = Get(_command.DeterminismStress);
nodeFactoryFlags.PrintReproArgs = Get(_command.PrintReproInstructions);
nodeFactoryFlags.EnableCachedInterfaceDispatchSupport = Get(_command.EnableCachedInterfaceDispatchSupport);
nodeFactoryFlags.EnableCachedInterfaceDispatchSupport = Get(_command.EnableCachedInterfaceDispatchSupport) ?? !typeSystemContext.TargetAllowsRuntimeCodeGeneration;

builder
.UseMapFile(Get(_command.Map))
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/tools/aot/crossgen2/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
<value>Number of nested occurrences of a potentially cyclic generic type to cut off</value>
</data>
<data name="EnableCachedInterfaceDispatchSupport" xml:space="preserve">
<value>Enable support for cached interface dispatch</value>
<value>Enable support for cached interface dispatch. Default is true on platforms which do not support runtime code generation</value>
</data>
<data name="OutputFormat" xml:space="preserve">
<value>Target output format for the ReadyToRun image</value>
Expand Down
Loading