Add granular suppressions for linker warnings (#40691)
authorLayomi Akinrinade <laakinri@microsoft.com>
Wed, 30 Sep 2020 14:06:25 +0000 (10:06 -0400)
committerGitHub <noreply@github.com>
Wed, 30 Sep 2020 14:06:25 +0000 (09:06 -0500)
commit994dca6f34dc709aa91a5976ea8322ef7a9604d1
tree962fca0e8611c980c95b56fedc273b5ba153b2a2
parentf98038aff88560fbd3c8883aebecd4a4c7894d3d
Add granular suppressions for linker warnings (#40691)

* Add granular suppressions for linker warnings

* Add suppressions for mono SPC

* Misc additions

* Add suppressions for Debug config

* Fix Android xml file

* Include System.ComponentModel.Annotations suppressions

* Add suppressions for System.Security.Cryptography.X509Certificates on Linux

* Fix TargetOs exists check

* Add IL2077 to System.Security.Cryptography.X509Certificates on Android

* Generalize some System.Security.Cryptography.X509Certificates suppressions to 'NonWindows'

* Remove ref to catch-all System.Security.Cryptography.X509Certificates file

* Misc clean up and some feedback

* Use ILLinkDirectory in CreateRuntimeRootILLinkDescriptorFile.targets

* Update paths for directories

* Set TargetPath as part of include

* Delete bin-placing TODO

* Include more xml files during per-library run

* Include more xml files during per-library run, pt 2

* Include more xml files during per-library run, pt 3

* Try including System.ComponentModel.Annotations based on BuildingNETCoreAppVertical

* Switch to BuildAllConfigurations

* Include xml extension in file paths

* Remove version number from assembly suppression files

* Delete ILLink.Suppressions.xml

* Try removing IL2035 nowarn

* Remove version from Microsoft.VisualBasic.Core assemly name
47 files changed:
eng/illink.targets
src/coreclr/src/System.Private.CoreLib/CreateRuntimeRootILLinkDescriptorFile.targets
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/ILLink/ILLinkTrim.xml [moved from src/coreclr/src/System.Private.CoreLib/ILLinkTrim.xml with 100% similarity]
src/libraries/Microsoft.CSharp/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/Microsoft.CSharp/src/ILLink/ILLinkTrim.xml [moved from src/libraries/Microsoft.CSharp/src/ILLinkTrim.xml with 100% similarity]
src/libraries/Microsoft.VisualBasic.Core/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/Microsoft.VisualBasic.Core/src/ILLink/ILLinkTrim.xml [moved from src/libraries/Microsoft.VisualBasic.Core/src/ILLinkTrim.xml with 100% similarity]
src/libraries/System.ComponentModel.Annotations/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.ComponentModel.TypeConverter/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.ComponentModel.TypeConverter/src/ILLink/ILLinkTrim_LibraryBuild.xml [moved from src/libraries/System.ComponentModel.TypeConverter/src/ILLinkTrim_LibraryBuild.xml with 100% similarity]
src/libraries/System.Data.Common/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Diagnostics.DiagnosticSource/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Diagnostics.StackTrace/src/ILLink/ILLinkTrim_LibraryBuild.xml [moved from src/libraries/System.Diagnostics.StackTrace/src/ILLinkTrim_LibraryBuild.xml with 100% similarity]
src/libraries/System.Diagnostics.TraceSource/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Drawing.Primitives/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Linq.Expressions/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Linq.Queryable/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Linq/src/ILLink/ILLinkTrim.xml [moved from src/libraries/System.Linq/src/ILLinkTrim.xml with 100% similarity]
src/libraries/System.Net.Http.Json/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Net.Http/src/ILLink/ILLink.Suppressions.Debug.xml [new file with mode: 0644]
src/libraries/System.ObjectModel/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Suppressions.Shared.NonWindows.xml [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Suppressions.Shared.xml [new file with mode: 0644]
src/libraries/System.Private.DataContractSerialization/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/ILLink/ILLink.Suppressions.Browser.xml [new file with mode: 0644]
src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/ILLink/ILLinkTrim.xml [moved from src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/ILLinkTrim.xml with 100% similarity]
src/libraries/System.Private.Xml.Linq/src/ILLink/ILLinkTrim_LibraryBuild.xml [moved from src/libraries/System.Private.Xml.Linq/src/ILLinkTrim_LibraryBuild.xml with 100% similarity]
src/libraries/System.Private.Xml/src/ILLink/ILLink.Suppressions.Debug.xml [new file with mode: 0644]
src/libraries/System.Private.Xml/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Private.Xml/src/ILLink/ILLinkTrim_LibraryBuild.xml [moved from src/libraries/System.Private.Xml/src/ILLinkTrim_LibraryBuild.xml with 100% similarity]
src/libraries/System.Reflection.DispatchProxy/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Reflection.TypeExtensions/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Runtime.InteropServices/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Runtime.Serialization.Formatters/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Security.Claims/src/ILLink/ILLinkTrim_LibraryBuild.xml [moved from src/libraries/System.Security.Claims/src/ILLinkTrim_LibraryBuild.xml with 100% similarity]
src/libraries/System.Security.Cryptography.Algorithms/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Security.Cryptography.Csp/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Security.Cryptography.X509Certificates/src/ILLink/ILLink.Suppressions.NonWindows.xml [new file with mode: 0644]
src/libraries/System.Security.Principal.Windows/src/ILLink/ILLinkTrim_LibraryBuild.xml [moved from src/libraries/System.Security.Principal.Windows/src/ILLinkTrim_LibraryBuild.xml with 100% similarity]
src/libraries/System.Text.Json/src/ILLink/ILLink.Suppressions.Debug.xml [new file with mode: 0644]
src/libraries/System.Text.Json/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/System.Text.RegularExpressions/src/ILLink/ILLink.Suppressions.Debug.xml [new file with mode: 0644]
src/libraries/System.Text.RegularExpressions/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]
src/libraries/illink-sharedframework.targets
src/libraries/src.proj
src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.Suppressions.xml [new file with mode: 0644]