Disable runtime-async for ppc64le, s390x, and Mono runtimes - #68974
Disable runtime-async for ppc64le, s390x, and Mono runtimes#68974shrinivas-sidral wants to merge 1 commit into
Conversation
@shrinivas-sidral can you clarify this? Afaik the .NET 11 SDK doesn't default to |
Thanks @tmds for pointing that out. The earlier PR description was incorrect, which led to that confusion—sorry about that! |
Assuming the above, then it should never be turned on when aspnetcore/Directory.Build.targets Lines 153 to 162 in 70f2905 Depending on how you run the build/test you may manually have to add The changes in this PR shouldn't be needed. |
|
@dotnet-policy-service agree company="IBM" |
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
|
@shrinivas-sidral and I are looking into why |
[ppc64le][s390x][Mono] Disable
runtime-asyncfeature on unsupported architecturesDisable
runtime-asyncforppc64le,s390x, and Mono builds to resolveInvalidProgramExceptiontest failures.Description
ASP.NET Core enables the experimental
runtime-asyncfeature (<Features>$(Features);runtime-async=on</Features>) fornet11.0framework and test assemblies.The Mono runtime and JIT backends for
ppc64leands390xdo not support this new async IL format. This causes widespreadSystem.InvalidProgramException: Invalid IL code ... retfailures at runtime (such as inGenericWebHostService:StartAsync), breaking test execution.Changes
<UseRuntimeAsync>false</UseRuntimeAsync>inDirectory.Build.propswhenTargetArchitectureisppc64leors390x, or whenDotNetBuildUseMonoRuntimeistrue.runtime-async=oninDirectory.Build.targetswith'$(UseRuntimeAsync)' != 'false'to ensure it is not passed on unsupported targets.Fixes #68067
Cc: @tmds @omajid