Skip to content

Commit 7b342f5

Browse files
authored
Add support for wasm/net9.0 (#2447)
1 parent e111368 commit 7b342f5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/BenchmarkDotNet.Annotations/Jobs/RuntimeMoniker.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ public enum RuntimeMoniker
145145
/// </summary>
146146
WasmNet80,
147147

148+
/// <summary>
149+
/// WebAssembly with net9.0
150+
/// </summary>
151+
WasmNet90,
152+
148153
/// <summary>
149154
/// Mono with the Ahead of Time LLVM Compiler backend
150155
/// </summary>

src/BenchmarkDotNet.Diagnostics.dotTrace/DotTraceDiagnoser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ internal static bool IsSupported(RuntimeMoniker runtimeMoniker)
108108
case RuntimeMoniker.WasmNet60:
109109
case RuntimeMoniker.WasmNet70:
110110
case RuntimeMoniker.WasmNet80:
111+
case RuntimeMoniker.WasmNet90:
111112
case RuntimeMoniker.MonoAOTLLVM:
112113
case RuntimeMoniker.MonoAOTLLVMNet60:
113114
case RuntimeMoniker.MonoAOTLLVMNet70:

src/BenchmarkDotNet/ConsoleArguments/ConfigParser.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,9 @@ private static Job CreateJobForGivenRuntime(Job baseJob, string runtimeId, Comma
563563
case RuntimeMoniker.WasmNet80:
564564
return MakeWasmJob(baseJob, options, "net8.0", runtimeMoniker);
565565

566+
case RuntimeMoniker.WasmNet90:
567+
return MakeWasmJob(baseJob, options, "net9.0", runtimeMoniker);
568+
566569
case RuntimeMoniker.MonoAOTLLVM:
567570
return MakeMonoAOTLLVMJob(baseJob, options, RuntimeInformation.IsNetCore ? CoreRuntime.GetCurrentVersion().MsBuildMoniker : "net6.0");
568571

0 commit comments

Comments
 (0)