From 3f1bb91354fe1d5740a3afef2e65663b06780452 Mon Sep 17 00:00:00 2001 From: Layomi Akinrinade Date: Wed, 29 Jul 2020 13:02:07 -0700 Subject: [PATCH 1/2] Enable verbose linker output and bulk-suppress warnings --- eng/illink.targets | 14 ++++++++++++++ .../System.Private.CoreLib.csproj | 1 + src/libraries/Directory.Build.targets | 2 +- .../System.Private.CoreLib.csproj | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/eng/illink.targets b/eng/illink.targets index 79eb5d409643b7..56e2eee570f385 100644 --- a/eng/illink.targets +++ b/eng/illink.targets @@ -216,6 +216,20 @@ $(ILLinkArgs) --disable-opt unusedinterfaces $(ILLinkArgs) --keep-dep-attributes true + + $(ILLinkArgs) --verbose + + $(ILLinkArgs) --nowarn IL2006;IL2008;IL2009;IL2012;IL2025;IL2026;IL2035;IL2041 diff --git a/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj index 501487c6a111bb..ff58ea7da28f2c 100644 --- a/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -18,6 +18,7 @@ x64;x86;arm;arm64 true + false $(IntermediateOutputPath)System.Private.CoreLib.xml diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets index 95dae2669d8e9a..dd43311db820be 100644 --- a/src/libraries/Directory.Build.targets +++ b/src/libraries/Directory.Build.targets @@ -92,7 +92,7 @@ ILLinkTrimAssembly=true + '$(ILLinkTrimAssembly)' == ''">ILLinkTrimAssembly=true;ILLinkTrimAssemblyVerbose=true diff --git a/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj index 95e1e72845ad16..a63244d8dcfc68 100644 --- a/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -143,6 +143,7 @@ true + false $(MSBuildThisFileDirectory)src\ILLink\ From bed6c1d8efd3e983be1e8fbf9fc5befeecbb70f7 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Thu, 30 Jul 2020 09:50:57 -0500 Subject: [PATCH 2/2] Suppress ILLinker warnings for now, so ILLinker can enable warnings by default --- eng/illink.targets | 4 +--- .../src/System.Private.CoreLib/System.Private.CoreLib.csproj | 1 - src/libraries/Directory.Build.targets | 2 +- .../System.Private.CoreLib/System.Private.CoreLib.csproj | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/eng/illink.targets b/eng/illink.targets index 56e2eee570f385..ddd4936cc26471 100644 --- a/eng/illink.targets +++ b/eng/illink.targets @@ -216,8 +216,6 @@ $(ILLinkArgs) --disable-opt unusedinterfaces $(ILLinkArgs) --keep-dep-attributes true - - $(ILLinkArgs) --verbose - $(ILLinkArgs) --nowarn IL2006;IL2008;IL2009;IL2012;IL2025;IL2026;IL2035;IL2041 + $(ILLinkArgs) --nowarn IL2006;IL2008;IL2009;IL2012;IL2025;IL2026;IL2035;IL2041 diff --git a/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj index ff58ea7da28f2c..501487c6a111bb 100644 --- a/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -18,7 +18,6 @@ x64;x86;arm;arm64 true - false $(IntermediateOutputPath)System.Private.CoreLib.xml diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets index dd43311db820be..95dae2669d8e9a 100644 --- a/src/libraries/Directory.Build.targets +++ b/src/libraries/Directory.Build.targets @@ -92,7 +92,7 @@ ILLinkTrimAssembly=true;ILLinkTrimAssemblyVerbose=true + '$(ILLinkTrimAssembly)' == ''">ILLinkTrimAssembly=true diff --git a/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj index a63244d8dcfc68..95e1e72845ad16 100644 --- a/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -143,7 +143,6 @@ true - false $(MSBuildThisFileDirectory)src\ILLink\