Skip to content
Merged
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
34 changes: 23 additions & 11 deletions src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ private static IEnumerable<Job> Expand(Job baseJob, CommandLineOptions options,
}
else if (!string.IsNullOrEmpty(options.ClrVersion))
{
yield return baseJob.WithRuntime(ClrRuntime.CreateForLocalFullNetFrameworkBuild(options.ClrVersion)); // local builds of .NET Runtime
var runtime = ClrRuntime.CreateForLocalFullNetFrameworkBuild(options.ClrVersion);
yield return baseJob.WithRuntime(runtime).WithId(runtime.Name); // local builds of .NET Runtime
}
else if (options.CliPath != null && options.Runtimes.IsEmpty() && options.CoreRunPaths.IsEmpty())
{
Expand Down Expand Up @@ -518,9 +519,13 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
case RuntimeMoniker.Net472:
case RuntimeMoniker.Net48:
case RuntimeMoniker.Net481:
return baseJob
.WithRuntime(runtimeMoniker.GetRuntime())
.WithToolchain(CsProjClassicNetToolchain.From(runtimeId, options.RestorePath?.FullName, options.CliPath?.FullName));
{
var runtime = runtimeMoniker.GetRuntime();
return baseJob
.WithRuntime(runtime)
.WithId(runtime.Name)
.WithToolchain(CsProjClassicNetToolchain.From(runtimeId, options.RestorePath?.FullName, options.CliPath?.FullName));
}

case RuntimeMoniker.NetCoreApp20:
case RuntimeMoniker.NetCoreApp21:
Expand All @@ -536,12 +541,19 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
case RuntimeMoniker.Net80:
case RuntimeMoniker.Net90:
case RuntimeMoniker.Net10_0:
return baseJob
.WithRuntime(runtimeMoniker.GetRuntime())
.WithToolchain(CsProjCoreToolchain.From(new NetCoreAppSettings(runtimeId, null, runtimeId, options.CliPath?.FullName, options.RestorePath?.FullName)));
{
var runtime = runtimeMoniker.GetRuntime();
return baseJob
.WithRuntime(runtime)
.WithId(runtime.Name)
.WithToolchain(CsProjCoreToolchain.From(new NetCoreAppSettings(runtimeId, null, runtimeId, options.CliPath?.FullName, options.RestorePath?.FullName)));
}

case RuntimeMoniker.Mono:
return baseJob.WithRuntime(new MonoRuntime("Mono", options.MonoPath?.FullName));
{
var runtime = new MonoRuntime("Mono", options.MonoPath?.FullName);
return baseJob.WithRuntime(runtime).WithId(runtime.Name);
}

case RuntimeMoniker.NativeAot60:
return CreateAotJob(baseJob, options, runtimeMoniker, "6.0.0-*", "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json");
Expand Down Expand Up @@ -636,7 +648,7 @@ private static Job CreateAotJob(Job baseJob, CommandLineOptions options, Runtime
var runtime = runtimeMoniker.GetRuntime();
builder.TargetFrameworkMoniker(runtime.MsBuildMoniker);

return baseJob.WithRuntime(runtime).WithToolchain(builder.ToToolchain());
return baseJob.WithRuntime(runtime).WithToolchain(builder.ToToolchain()).WithId(runtime.Name);
}

private static Job MakeMonoJob(Job baseJob, CommandLineOptions options, MonoRuntime runtime)
Expand Down Expand Up @@ -667,7 +679,7 @@ private static Job MakeMonoAOTLLVMJob(Job baseJob, CommandLineOptions options, s
aotCompilerPath: options.AOTCompilerPath.ToString(),
aotCompilerMode: options.AOTCompilerMode));

return baseJob.WithRuntime(monoAotLLVMRuntime).WithToolchain(toolChain);
return baseJob.WithRuntime(monoAotLLVMRuntime).WithToolchain(toolChain).WithId(monoAotLLVMRuntime.Name);
}

private static Job MakeWasmJob(Job baseJob, CommandLineOptions options, string msBuildMoniker, RuntimeMoniker moniker)
Expand All @@ -691,7 +703,7 @@ private static Job MakeWasmJob(Job baseJob, CommandLineOptions options, string m
customRuntimePack: options.CustomRuntimePack,
aotCompilerMode: options.AOTCompilerMode));

return baseJob.WithRuntime(wasmRuntime).WithToolchain(toolChain);
return baseJob.WithRuntime(wasmRuntime).WithToolchain(toolChain).WithId(wasmRuntime.Name);
}

private static IEnumerable<IFilter> GetFilters(CommandLineOptions options)
Expand Down