| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
I noticed this while looking at an issue in the 9.0 branch with latest clang which runs into a couple warnings fixed in main with dotnet#108888. We intentionally don't set `-Werror` in release branches to avoid breaking the build when newer compilers add warnings via https://github.com/dotnet/runtime/blob/37e4d45236e68946db9d264593aa31a9c00534bc/eng/native/configurecompiler.cmake#L564-L567 However this didn't work because msbuild's WarnAsError was still reading the console output of the native build and upgrading any line with "warning: " to an msbuild error and breaking the build. Suppress this by setting IgnoreStandardErrorWarningFormat="true" on the Exec call. We already did this in the coreclr and mono runtime builds, we just missed it in libs.native.
|
Applying servicing-approved, infrastructure-only change required to build with newer compilers, tell mode. |
Sorry, something went wrong.
|
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
Sorry, something went wrong.
|
/ba-g wasm failures are due to using a not-yet-published .net version, unrelated |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Backport of #114323 to release/9.0-staging.
Don't inadvertently upgrade compiler warnings to errors in libs.native.
Customer Impact
Building with a newer compilers can introduce new warnings, breaking the build unintentionally even though we explicitly tried to avoid this by disabling this behavior in release branches. This could especially affect source-build partners which don't use our build infrastructure.
Regression
No, we just forgot to apply this fix to the libs.native subset. It was there for coreclr and mono runtime builds already.
Testing
CI testing.
Risk
Low, this is a build-only change.