Skip to content

Commit

Permalink
[Mono] Disable LLVM JIT (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang-mono authored Oct 6, 2022
1 parent ecb25bf commit 5ed46d5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/BenchmarkDotNet/Extensions/ProcessExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,6 @@ internal static void SetEnvironmentVariables(this ProcessStartInfo start, Benchm
// disable ReSharper's Dynamic Program Analysis (see https://github.com/dotnet/BenchmarkDotNet/issues/1871 for details)
start.EnvironmentVariables["JETBRAINS_DPA_AGENT_ENABLE"] = "0";

if (benchmarkCase.Job.Infrastructure.Toolchain is MonoAotLLVMToolChain)
{
MonoAotLLVMRuntime aotruntime = (MonoAotLLVMRuntime)benchmarkCase.GetRuntime();

if (aotruntime.AOTCompilerMode == MonoAotCompilerMode.llvm)
{
start.EnvironmentVariables["MONO_ENV_OPTIONS"] = "--llvm";
}
}

if (!benchmarkCase.Job.HasValue(EnvironmentMode.EnvironmentVariablesCharacteristic))
return;
Expand Down

0 comments on commit 5ed46d5

Please sign in to comment.