From 5191746f349a18a701cd84b10e5b8e16716255be Mon Sep 17 00:00:00 2001 From: Davis Goodin Date: Mon, 17 Sep 2018 10:51:18 -0500 Subject: [PATCH] Add mono/linker submodule Add a simple project for linker, and use the built tool in CoreCLR and CoreFX. Uses a patch to add "-h" arg and reflection heuristics feature. Update baselines: removes ILLink.Tasks, adds additional versions of some existing packages. --- .gitmodules | 3 + dependencies.props | 6 - init-tools.msbuild | 1 - ...-use-reflection-heuristics-during-ma.patch | 197 ++++++++++++++++++ repos/coreclr.proj | 4 + repos/corefx.proj | 3 +- repos/linker.proj | 73 +++++++ src/linker | 1 + tools-local/prebuilt-baseline-offline.xml | 15 +- tools-local/prebuilt-baseline-online.xml | 15 +- 10 files changed, 308 insertions(+), 10 deletions(-) create mode 100644 patches/linker/0001-Add-an-option-to-use-reflection-heuristics-during-ma.patch create mode 100644 repos/linker.proj create mode 160000 src/linker diff --git a/.gitmodules b/.gitmodules index 7f698f8eaf..81e8e6813e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -63,3 +63,6 @@ [submodule "src/roslyn-tools"] path = src/roslyn-tools url = https://github.com/dotnet/roslyn-tools +[submodule "src/linker"] + path = src/linker + url = https://github.com/mono/linker.git diff --git a/dependencies.props b/dependencies.props index 2e33eb7f62..239654d0ed 100644 --- a/dependencies.props +++ b/dependencies.props @@ -17,12 +17,6 @@ $(MSBuildThisFileFullPath) - - - ILLink.Tasks - 0.1.5-preview-1461378 - - + ILLink.Tasks + 0.1.5-preview-1461378 + + restore /bl:restore.binlog + $(BuildCommandArgs) $(ProjectDirectory)corebuild/integration/linker.sln + + + $(BuildCommandArgs) /p:ILLinkBuild=true + $(BuildCommandArgs) /p:NetStandard=true + + $(DotnetToolCommand) $(BuildCommandArgs) + + pack /bl:pack.binlog + $(BuildPackagesCommandArgs) /p:Version=$(ILLinkTasksPackageVersion) + $(BuildPackagesCommandArgs) $(ProjectDirectory)corebuild/integration/ILLink.Tasks/ILLink.Tasks.csproj + $(DotnetToolCommand) $(BuildPackagesCommandArgs) + + $(ProjectDirectory)corebuild/integration/bin/nupkgs + + false + N/A + + + + + + $(PackagesOutput)/$(ILLinkTasksPackageId).$(ILLinkTasksPackageVersion).nupkg + $(ILLinkTasksPackageId.ToLowerInvariant()) + + + + + + + + + + + $(ProjectDirectory)corebuild/integration/ILLink.Tasks/ILLink.Tasks.nuspec + + + + + $id$ + $version$ + $authors$ + $description$ + + + + + + + +]]> + + + + + + + + diff --git a/src/linker b/src/linker new file mode 160000 index 0000000000..9e8bcb4075 --- /dev/null +++ b/src/linker @@ -0,0 +1 @@ +Subproject commit 9e8bcb40755c4ec007b6ca89618968b7c5f6fe58 diff --git a/tools-local/prebuilt-baseline-offline.xml b/tools-local/prebuilt-baseline-offline.xml index 45e39913cf..0431ac1876 100644 --- a/tools-local/prebuilt-baseline-offline.xml +++ b/tools-local/prebuilt-baseline-offline.xml @@ -11,6 +11,7 @@ src/corefx/ src/fsharp/ src/known-good/ + src/linker/ src/msbuild/ src/netcorecli-fsc/ src/newtonsoft-json/ @@ -49,7 +50,6 @@ - @@ -136,6 +136,7 @@ + @@ -170,6 +171,7 @@ + @@ -216,6 +218,7 @@ + @@ -225,32 +228,42 @@ + + + + + + + + + + diff --git a/tools-local/prebuilt-baseline-online.xml b/tools-local/prebuilt-baseline-online.xml index eb89ae0737..5791fe52aa 100644 --- a/tools-local/prebuilt-baseline-online.xml +++ b/tools-local/prebuilt-baseline-online.xml @@ -11,6 +11,7 @@ src/corefx/ src/fsharp/ src/known-good/ + src/linker/ src/msbuild/ src/netcorecli-fsc/ src/newtonsoft-json/ @@ -37,7 +38,6 @@ - @@ -125,6 +125,7 @@ + @@ -162,6 +163,7 @@ + @@ -209,6 +211,7 @@ + @@ -218,32 +221,42 @@ + + + + + + + + + +