Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-08-20 06:48:21 +0300
committerGitHub <noreply@github.com>2022-08-20 06:48:21 +0300
commitc7cab43bd1d7c30f10cdba6e92c73e9e4669fb10 (patch)
treea08ddcf0ed0fca13e78faf5677ab272fb63bb4f4 /eng/testing
parent39d767a3248b8e7d7f2f3b76cb522e736878e4e6 (diff)
[release/7.0-rc1] Add a way to suppress all trimming warnings (#74220)
* Add a way to suppress all trimming warnings Fixes #73926. Also adding AOT analysis suppression for parity. I didn't port the warning level support because the compat kind of goes beyond that. We can revisit later if needed. * Update Microsoft.NETCore.Native.targets Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
Diffstat (limited to 'eng/testing')
-rw-r--r--eng/testing/tests.singlefile.targets39
1 files changed, 2 insertions, 37 deletions
diff --git a/eng/testing/tests.singlefile.targets b/eng/testing/tests.singlefile.targets
index 86a8b98d545..d307e837e62 100644
--- a/eng/testing/tests.singlefile.targets
+++ b/eng/testing/tests.singlefile.targets
@@ -26,48 +26,13 @@
<IlcBuildTasksPath>$(CoreCLRILCompilerDir)netstandard/ILCompiler.Build.Tasks.dll</IlcBuildTasksPath>
<IlcSdkPath>$(CoreCLRAotSdkDir)</IlcSdkPath>
<IlcFrameworkPath>$(NetCoreAppCurrentTestHostSharedFrameworkPath)</IlcFrameworkPath>
- <NoWarn>$(NoWarn);IL3050;IL3051;IL3052;IL3054;IL3055;IL1005;IL3002</NoWarn>
+ <NoWarn>$(NoWarn);IL1005;IL3002</NoWarn>
<TrimMode>partial</TrimMode>
- <TrimmerSingleWarn>false</TrimmerSingleWarn>
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
+ <SuppressAotAnalysisWarnings>true</SuppressAotAnalysisWarnings>
<!-- Forced by ILLink targets; we should fix the SDK -->
<SelfContained>true</SelfContained>
-
- <!-- Works around https://github.com/dotnet/runtime/issues/73926 -->
- <!-- RequiresUnreferenceCodeAttribute method called -->
- <NoWarn>$(NoWarn);IL2026;IL2116</NoWarn>
- <!-- Invalid use of DynamicallyAccessedMembersAttribute -->
- <NoWarn>$(NoWarn);IL2041;IL2042;IL2043;IL2056</NoWarn>
- <!-- Reference to removed attribute type -->
- <NoWarn>$(NoWarn);IL2045</NoWarn>
- <!-- RequiresUnreferencedCodeAttribute mismatch on virtual override -->
- <NoWarn>$(NoWarn);IL2046</NoWarn>
- <!-- COM marshalling warning -->
- <NoWarn>$(NoWarn);IL2050</NoWarn>
- <!-- Reflection intrinsics with unknown arguments -->
- <NoWarn>$(NoWarn);IL2032;IL2055;IL2057;IL2058;IL2059;IL2060;IL2061;IL2096</NoWarn>
- <!-- Unknown values passed to locations with DynamicallyAccessedMemberTypes -->
- <NoWarn>$(NoWarn);IL2062;IL2063;IL2064;IL2065;IL2066</NoWarn>
- <!-- Unsatisfied DynamicallyAccessedMembers requirements -->
- <NoWarn>$(NoWarn);IL2067;IL2068;IL2069;IL2070;IL2071;IL2072;IL2073;IL2074;IL2075;IL2076;IL2077;IL2078;IL2079;IL2080;IL2081;IL2082;IL2083;IL2084;IL2085;IL2086;IL2087;IL2088;IL2089;IL2090;IL2091</NoWarn>
- <!-- DynamicallyAccessedMembersAttribute mismatch on virtual override -->
- <NoWarn>$(NoWarn);IL2092;IL2093;IL2094;IL2095</NoWarn>
- <!-- DynamicallyAccessedMembersAttribute used on unsupported member -->
- <NoWarn>$(NoWarn);IL2097;IL2098;IL2099;IL2106</NoWarn>
- <!-- Unknown value passed to Expression.Property -->
- <NoWarn>$(NoWarn);IL2103</NoWarn>
- <!-- Multiple methods associated with state machine type or user method -->
- <NoWarn>$(NoWarn);IL2107;IL2117</NoWarn>
- <!-- Unannotated type derived from base type with RequiresUnreferencedCode -->
- <NoWarn>$(NoWarn);IL2109</NoWarn>
- <!-- Reflection access to members with DynamicallyAccessedMembers requirements -->
- <NoWarn>$(NoWarn);IL2110;IL2111;IL2114;IL2115</NoWarn>
- <!-- Reflection access to members with RequiresUnreferencedCode -->
- <NoWarn>$(NoWarn);IL2112;IL2113</NoWarn>
- <!-- Reflection access to compiler-generated code -->
- <NoWarn>$(NoWarn);IL2118;IL2119;IL2120</NoWarn>
-
</PropertyGroup>
<Import Project="$(CoreCLRBuildIntegrationDir)Microsoft.DotNet.ILCompiler.SingleEntry.targets" Condition="'$(TestNativeAot)' == 'true'" />