Skip to content

Commit

Permalink
Disable pre-initialized statics for System.Runtime.Tests
Browse files Browse the repository at this point in the history
Temporary workaround for dotnet#96279
  • Loading branch information
jkotas committed Dec 24, 2023
1 parent e9d53b7 commit dcfa784
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-browser</TargetFrameworks>
<DefineConstants Condition="'$(TargetOS)' == 'browser'">$(DefineConstants);TARGET_BROWSER</DefineConstants>
Expand Down Expand Up @@ -27,6 +27,11 @@
<RdXmlFile Include="default.rd.xml" />
</ItemGroup>

<ItemGroup>
<!-- Delete once https://github.com/dotnet/runtime/issues/96279 is fixed -->
<IlcArg Include="--nopreinitstatics" />
</ItemGroup>

<ItemGroup>
<Compile Include="$(CommonTestPath)System\EnumTypes.cs" Link="Common\System\EnumTypes.cs" />
<Compile Include="$(CommonTestPath)System\FunctionPointerTests.cs" Link="Common\System\FunctionPointerTests.cs" />
Expand Down

0 comments on commit dcfa784

Please sign in to comment.