Skip to content

Commit 35ba9d5

Browse files
authored
Change aot mode to normal aot with LLVM JIT fall back (#1990)
1 parent 163f406 commit 35ba9d5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/BenchmarkDotNet/Extensions/ProcessExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ internal static void SetEnvironmentVariables(this ProcessStartInfo start, Benchm
137137

138138
if (aotruntime.AOTCompilerMode == MonoAotCompilerMode.llvm)
139139
{
140-
start.EnvironmentVariables["MONO_ENV_OPTIONS"] = "--full-aot";
140+
start.EnvironmentVariables["MONO_ENV_OPTIONS"] = "--llvm";
141141
}
142142
}
143143

src/BenchmarkDotNet/Templates/MonoAOTLLVMCsProj.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,14 @@
4747

4848
<ItemGroup>
4949
<AotInputAssemblies Include="$(PublishDirFullPath)\*.dll">
50-
<AotArguments>@(MonoAOTCompilerDefaultAotArguments, ';');mcpu=native</AotArguments>
51-
<ProcessArguments>@(MonoAOTCompilerDefaultProcessArguments, ';')</ProcessArguments>
50+
<AotArguments>mcpu=native</AotArguments>
5251
</AotInputAssemblies>
5352
</ItemGroup>
5453

5554

5655
<MonoAOTCompiler
5756
CompilerBinaryPath="$COMPILERBINARYPATH$"
58-
Mode="Full"
57+
Mode="Normal"
5958
OutputType="Library"
6059
LibraryFormat="$(SharedLibraryType)"
6160
Assemblies="@(AotInputAssemblies)"

0 commit comments

Comments
 (0)