From 65030514a35642df5c0f0fedf0da763ae8fe27f4 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Mon, 13 Jul 2020 18:31:10 -0500 Subject: [PATCH 1/2] Remove debug only attributes when Debugger.IsSupported is false. Contributes to https://github.com/mono/linker/issues/1093 --- .../src/ILLink/ILLink.LinkAttributes.wasm.xml | 48 ++++++++++++++++--- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.wasm.xml b/src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.wasm.xml index 78fc3756bf0e41..872c2ae2e035f6 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.wasm.xml +++ b/src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.wasm.xml @@ -83,12 +83,6 @@ - - - - @@ -116,12 +110,52 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 0ed1588a0994494c44fa52d62915ddcc0dced753 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Tue, 14 Jul 2020 09:25:36 -0500 Subject: [PATCH 2/2] Move debug only attributes to shared CoreLib. --- .../ILLink/ILLink.LinkAttributes.Shared.xml | 41 +++++++++++++++++++ .../System.Private.CoreLib.Shared.projitems | 2 + .../System.Private.CoreLib.csproj | 2 +- .../src/ILLink/ILLink.LinkAttributes.wasm.xml | 40 ------------------ 4 files changed, 44 insertions(+), 41 deletions(-) create mode 100644 src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml diff --git a/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml b/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml new file mode 100644 index 00000000000000..d864e916300538 --- /dev/null +++ b/src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems index fd27062f4c0098..1e144187eaa276 100644 --- a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems +++ b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems @@ -28,6 +28,8 @@ Condition="'$(Platform)' == 'wasm'" /> + + 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 8b2acf2ac74f45..2f32d971670ee1 100644 --- a/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -153,7 +153,7 @@ - diff --git a/src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.wasm.xml b/src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.wasm.xml index 872c2ae2e035f6..9e409ddc89e2b1 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.wasm.xml +++ b/src/mono/netcore/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.wasm.xml @@ -115,46 +115,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -