Skip to content

[wasm] Fix dotnet-runtime-perf build for wasm - #2542

Merged
adamsitnik merged 2 commits into
dotnet:mainfrom
radical:fix-build
Aug 1, 2022
Merged

adamsitnik merged 2 commits into
dotnet:mainfrom
radical:fix-build

Conversation

@radical

@radical radical commented Jul 30, 2022

Copy link
Copy Markdown
Member

The wasm builds on dotnet-runtime-perf started breaking after Fix UnsupportedOSPlatformAttribute usage in System.Net.NetworkInformation.cs
(dotnet/runtime#72792) was merged, with:

error CA1416: This call site is reachable on all platforms. 'IPInterfaceStatistics.IncomingUnknownProtocolPackets' is unsupported on: 'linux'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceProperties.IsDynamicDnsEnabled' is supported on: 'windows'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceStatistics.NonUnicastPacketsSent' is unsupported on: 'linux'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceProperties.AnycastAddresses' is supported on: 'windows'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]

This commit adds guards around these calls.

The wasm builds on `dotnet-runtime-perf` started breaking after `Fix
UnsupportedOSPlatformAttribute usage in
System.Net.NetworkInformation.cs`
(dotnet/runtime#72792) was merged, with:

```
error CA1416: This call site is reachable on all platforms. 'IPInterfaceStatistics.IncomingUnknownProtocolPackets' is unsupported on: 'linux'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceProperties.IsDynamicDnsEnabled' is supported on: 'windows'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceStatistics.NonUnicastPacketsSent' is unsupported on: 'linux'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
error CA1416: This call site is reachable on all platforms. 'IPInterfaceProperties.AnycastAddresses' is supported on: 'windows'. [/home/helixbot/work/AFE009B6/w/B4280986/e/performance/src/benchmarks/micro/MicroBenchmarks.csproj::TargetFramework=net7.0]
```

This commit adds guards around these calls.

@adamsitnik adamsitnik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @radical !

@adamsitnik adamsitnik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized that the CI is red (Full Framework build)

@adamsitnik
adamsitnik merged commit 142a5ce into dotnet:main Aug 1, 2022
@radical
radical deleted the fix-build branch August 1, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants