Skip to content

Commit ddba785

Browse files
CopilotagockejkotasMichalStrehovsky
authored
Enable runtime-async unconditionally in System.Private.CoreLib (CoreCLR and NativeAOT) (#126680)
`runtime-async=on` was only set for `Release` builds of CoreCLR's `System.Private.CoreLib`, and was gated behind a riscv64/loongarch64 exclusion in NativeAOT's `System.Private.CoreLib`. This enables it unconditionally in both projects. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: agocke <[email protected]> Co-authored-by: jkotas <[email protected]> Co-authored-by: MichalStrehovsky <[email protected]>
1 parent 5a341af commit ddba785

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<!-- https://github.com/dotnet/dotnet/issues/5640 -->
4545
<NoWarn>$(NoWarn);CS9368</NoWarn>
4646
<Nullable>enable</Nullable>
47+
<Features>$(Features);runtime-async=on</Features>
4748

4849
<!-- Ignore all previous constants since SPCL is sensitive to what is defined and the Sdk adds some by default -->
4950
<DefineConstants>CORECLR;NETCOREAPP;SYSTEM_PRIVATE_CORELIB</DefineConstants>
@@ -85,7 +86,6 @@
8586
</PropertyGroup>
8687
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
8788
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
88-
<Features>$(Features);runtime-async=on</Features>
8989
</PropertyGroup>
9090

9191
<!-- Assembly attributes -->

‎src/coreclr/nativeaot/System.Private.CoreLib/src/System.Private.CoreLib.csproj‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@
4242
<FeatureSharedLowLevelLock>true</FeatureSharedLowLevelLock>
4343
</PropertyGroup>
4444

45-
<!-- Enable runtime async for Native AOT -->
46-
<!-- RISC-V: https://github.com/dotnet/runtime/issues/124934 -->
47-
<!-- LoongArch: https://github.com/dotnet/runtime/issues/124935 -->
48-
<PropertyGroup Condition="'$(TargetArchitecture)' != 'riscv64' and '$(TargetArchitecture)' != 'loongarch64'">
45+
<PropertyGroup>
4946
<Features>$(Features);runtime-async=on</Features>
5047
</PropertyGroup>
5148

0 commit comments

Comments
 (0)