diff --git a/src/BenchmarkDotNet/Environments/Runtimes/CustomRuntime.cs b/src/BenchmarkDotNet/Environments/Runtimes/CustomRuntime.cs new file mode 100644 index 0000000000..96144b942a --- /dev/null +++ b/src/BenchmarkDotNet/Environments/Runtimes/CustomRuntime.cs @@ -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) + { + } + } +} \ No newline at end of file diff --git a/src/BenchmarkDotNet/Toolchains/Executor.cs b/src/BenchmarkDotNet/Toolchains/Executor.cs index 85afb75a3b..735c6f7437 100644 --- a/src/BenchmarkDotNet/Toolchains/Executor.cs +++ b/src/BenchmarkDotNet/Toolchains/Executor.cs @@ -148,6 +148,10 @@ private static ProcessStartInfo CreateStartInfo(BenchmarkCase benchmarkCase, Art start.Arguments = args; start.WorkingDirectory = artifactsPaths.BinariesDirectoryPath; break; + case CustomRuntime _: + start.FileName = exePath; + start.Arguments = args; + break; default: throw new NotSupportedException("Runtime = " + runtime); }