File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/BenchmarkDotNet/Toolchains/NativeAot Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ private string GenerateProjectForNuGetBuild(BuildPartition buildPartition, Artif
137
137
<IlcGenerateStackTraceData>{ ilcGenerateStackTraceData } </IlcGenerateStackTraceData>
138
138
<EnsureNETCoreAppRuntime>false</EnsureNETCoreAppRuntime> <!-- workaround for 'This runtime may not be supported by.NET Core.' error -->
139
139
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
140
+ { GetInstructionSetSettings ( buildPartition ) }
140
141
</PropertyGroup>
141
142
{ GetRuntimeSettings ( buildPartition . RepresentativeBenchmarkCase . Job . Environment . Gc , buildPartition . Resolver ) }
142
143
<ItemGroup>
@@ -152,9 +153,6 @@ private string GenerateProjectForNuGetBuild(BuildPartition buildPartition, Artif
152
153
<ItemGroup>
153
154
{ string . Join ( Environment . NewLine , GetRdXmlFiles ( buildPartition . RepresentativeBenchmarkCase . Descriptor . Type , logger ) . Select ( file => $ "<RdXmlFile Include=\" { file } \" />") ) }
154
155
</ItemGroup>
155
- <ItemGroup>
156
- { GetInstructionSetSettings ( buildPartition ) }
157
- </ItemGroup>
158
156
</Project>" ;
159
157
160
158
private string GetTrimmingSettings ( )
@@ -166,9 +164,7 @@ private string GetTrimmingSettings()
166
164
private string GetInstructionSetSettings ( BuildPartition buildPartition )
167
165
{
168
166
string instructionSet = ilcInstructionSet ?? GetCurrentInstructionSet ( buildPartition . Platform ) ;
169
- return ! string . IsNullOrEmpty ( instructionSet )
170
- ? $@ "<IlcArg Include=""--instructionset:{ instructionSet } "" />"
171
- : "" ;
167
+ return ! string . IsNullOrEmpty ( instructionSet ) ? $ "<IlcInstructionSet>{ instructionSet } </IlcInstructionSet>" : "" ;
172
168
}
173
169
174
170
public IEnumerable < string > GetRdXmlFiles ( Type benchmarkTarget , ILogger logger )
You can’t perform that action at this time.
0 commit comments