Skip to content

Commit 2f9a6c9

Browse files
committed
previous fix helped Linux, but broke macOS ;)
1 parent 93c8d4a commit 2f9a6c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BenchmarkDotNet/Toolchains/CoreRt/Generator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private string GenerateProjectForNuGetBuild(BuildPartition buildPartition, Artif
149149
<ItemGroup>
150150
<RdXmlFile Include=""rd.xml"" />
151151
</ItemGroup>
152-
<ItemGroup>
152+
<ItemGroup Condition="" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' "">
153153
<LinkerArg Include=""-lanl"" />
154154
</ItemGroup>
155155
</Project>";
@@ -186,7 +186,7 @@ private string GenerateProjectForLocalBuild(BuildPartition buildPartition, Artif
186186
<ItemGroup>
187187
<RdXmlFile Include=""rd.xml"" />
188188
</ItemGroup>
189-
<ItemGroup>
189+
<ItemGroup Condition="" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' "">
190190
<LinkerArg Include=""-lanl"" />
191191
</ItemGroup>
192192
</Project>";

0 commit comments

Comments
 (0)