Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Apply @AndreyAkinshin's suggestion
  • Loading branch information
tgjones committed Mar 10, 2023
commit 8471f18b8fc96ddc3d12dd3a89717afcae905dbf
12 changes: 12 additions & 0 deletions src/BenchmarkDotNet/Environments/Runtimes/CustomRuntime.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using BenchmarkDotNet.Jobs;

namespace BenchmarkDotNet.Environments
{
public abstract class CustomRuntime : Runtime
{
protected CustomRuntime(RuntimeMoniker runtimeMoniker, string msBuildMoniker, string displayName)
: base(runtimeMoniker, msBuildMoniker, displayName)
{
}
}
}
4 changes: 3 additions & 1 deletion src/BenchmarkDotNet/Toolchains/Executor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,12 @@ private static ProcessStartInfo CreateStartInfo(BenchmarkCase benchmarkCase, Art
start.Arguments = args;
start.WorkingDirectory = artifactsPaths.BinariesDirectoryPath;
break;
default:
case CustomRuntime _:
start.FileName = exePath;
start.Arguments = args;
break;
default:
throw new NotSupportedException("Runtime = " + runtime);
}
return start;
}
Expand Down