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:
authorSven Boemer <sbomer@gmail.com>2020-08-17 19:50:31 +0300
committerGitHub <noreply@github.com>2020-08-17 19:50:31 +0300
commitb61efface6cfff2cf7bea338c6f74a6d4f3318b6 (patch)
tree4baaf568c538ac74b3f3d0aa0580bf143b002493 /eng/illink.targets
parente75670889321611505115e4561a98e80732b58a0 (diff)
Update linker warning numbers (#40865)
* Update linker warning numbers In response to https://github.com/mono/linker/pull/1385. This replaces the global suppressions for IL2006 with the warnings that it was split into. * Add suppressions for linker tests
Diffstat (limited to 'eng/illink.targets')
-rw-r--r--eng/illink.targets11
1 files changed, 8 insertions, 3 deletions
diff --git a/eng/illink.targets b/eng/illink.targets
index d27feb5f466..928e9934858 100644
--- a/eng/illink.targets
+++ b/eng/illink.targets
@@ -225,8 +225,6 @@
<!-- keep DynamicDependencyAttribute unless a project explicitly disables it -->
<ILLinkArgs Condition="'$(ILLinkKeepDepAttributes)' != 'false'">$(ILLinkArgs) --keep-dep-attributes true</ILLinkArgs>
<!-- suppress warnings with the following codes:
- IL2006: The generic parameter 'T' from A with dynamically accessed member kinds B is passed into the generic parameter
- 'T' from 'System.Lazy<T>' which requires dynamically accessed member kinds 'PublicParameterlessConstructor'
IL2008: Could not find type A specified in resource B
IL2009: Could not find method A in type B specified in resource C
IL2012: Could not find field A in type B specified in resource C
@@ -236,7 +234,14 @@
IL2050: P/invoke method A declares a parameter with COM marshalling. Correctness of COM interop
cannot be guaranteed after trimming. Interfaces and interface members might be removed.
-->
- <ILLinkArgs>$(ILLinkArgs) --nowarn IL2006;IL2008;IL2009;IL2012;IL2025;IL2026;IL2035;IL2050</ILLinkArgs>
+ <LinkerNoWarn>IL2008;IL2009;IL2012;IL2025;IL2026;IL2035;IL2050</LinkerNoWarn>
+ <!-- IL2032,IL2055,IL2057-IL2061: Reflection intrinsics with unknown arguments -->
+ <LinkerNoWarn>$(LinkerNoWarn);IL2032;IL2055;IL2057;IL2058;IL2059;IL2060;IL2061</LinkerNoWarn>
+ <!-- IL2062-IL2066: Unknown values passed to locations with DynamicallyAccessedMemberTypes -->
+ <LinkerNoWarn>$(LinkerNoWarn);IL2062;IL2063;IL2064;IL2065;IL2066</LinkerNoWarn>
+ <!-- IL2067-IL2091: Unsatisfied DynamicallyAccessedMembers requirements -->
+ <LinkerNoWarn>$(LinkerNoWarn);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</LinkerNoWarn>
+ <ILLinkArgs>$(ILLinkArgs) --nowarn $(LinkerNoWarn)</ILLinkArgs>
</PropertyGroup>
<MakeDir Directories="$(ILLinkTrimInputPath)" />