Skip to content

Commit

Permalink
Add support for wasm/net9.0 (#2447)
Browse files Browse the repository at this point in the history
  • Loading branch information
radical committed Oct 19, 2023
1 parent e111368 commit 7b342f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/BenchmarkDotNet.Annotations/Jobs/RuntimeMoniker.cs
Expand Up @@ -145,6 +145,11 @@ public enum RuntimeMoniker
/// </summary>
WasmNet80,

/// <summary>
/// WebAssembly with net9.0
/// </summary>
WasmNet90,

/// <summary>
/// Mono with the Ahead of Time LLVM Compiler backend
/// </summary>
Expand Down
Expand Up @@ -108,6 +108,7 @@ internal static bool IsSupported(RuntimeMoniker runtimeMoniker)
case RuntimeMoniker.WasmNet60:
case RuntimeMoniker.WasmNet70:
case RuntimeMoniker.WasmNet80:
case RuntimeMoniker.WasmNet90:
case RuntimeMoniker.MonoAOTLLVM:
case RuntimeMoniker.MonoAOTLLVMNet60:
case RuntimeMoniker.MonoAOTLLVMNet70:
Expand Down
3 changes: 3 additions & 0 deletions src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs
Expand Up @@ -563,6 +563,9 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
case RuntimeMoniker.WasmNet80:
return MakeWasmJob(baseJob, options, "net8.0", runtimeMoniker);

case RuntimeMoniker.WasmNet90:
return MakeWasmJob(baseJob, options, "net9.0", runtimeMoniker);

case RuntimeMoniker.MonoAOTLLVM:
return MakeMonoAOTLLVMJob(baseJob, options, RuntimeInformation.IsNetCore ? CoreRuntime.GetCurrentVersion().MsBuildMoniker : "net6.0");

Expand Down

0 comments on commit 7b342f5

Please sign in to comment.