From e30775679ff02b48aa3d61942fad8fa4516e60ba Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Mon, 27 Aug 2018 17:04:05 -0400 Subject: [PATCH 1/4] Enable portable builds on linux Most projects were already working fine. Only cli needed fixes to support $(PortableBuild). --- repos/cli.proj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/cli.proj b/repos/cli.proj index 705c66d5cd..257662370e 100644 --- a/repos/cli.proj +++ b/repos/cli.proj @@ -2,7 +2,7 @@ - --runtime-id $(TargetRid) + --runtime-id $(TargetRid) --stage0 $(DotNetCliToolDir) $(RuntimeArg) - true - - diff --git a/repos/cli.proj b/repos/cli.proj index 257662370e..20d05aef9c 100644 --- a/repos/cli.proj +++ b/repos/cli.proj @@ -2,7 +2,15 @@ - --runtime-id $(TargetRid) + + $(PortableBuild) + false + $(TargetRid) + osx-x64 + + --runtime-id $(TargetRid) + --stage0 $(DotNetCliToolDir) $(RuntimeArg) + $(PortableBuild) + $(TargetRid) + true + osx-x64 + + -ConfigurationGroup=$(Configuration) -PortableBuild=$(OverridePortableBuild) -SkipTests=true $(BuildArguments) -TargetArchitecture=$(Platform) -DisableCrossgen=true -CrossBuild=true - $(ProjectDirectory)/build$(ShellExtension) $(BuildArguments) -- /p:BuildDebPackage=false /p:BuildAllPackages=true + $(ProjectDirectory)/build$(ShellExtension) $(BuildArguments) -- /p:BuildDebPackage=false /p:BuildAllPackages=true /p:OutputRid=$(OverrideTargetRid) $(ArmEnvironmentVariables) $(BuildCommand) 20180725-05 diff --git a/repos/coreclr.proj b/repos/coreclr.proj index 56317690df..630bb91f96 100644 --- a/repos/coreclr.proj +++ b/repos/coreclr.proj @@ -2,7 +2,11 @@ - $(Platform) $(Configuration) skiptests -PortableBuild=$(PortableBuild) + + $(PortableBuild) + true + + $(Platform) $(Configuration) skiptests -PortableBuild=$(OverridePortableBuild) $(BuildArguments) -nopgooptimize $(BuildArguments) msbuildonunsupportedplatform $(BuildArguments) cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE diff --git a/repos/corefx.proj b/repos/corefx.proj index a501f27452..eacab19396 100644 --- a/repos/corefx.proj +++ b/repos/corefx.proj @@ -2,7 +2,7 @@ - -$(Configuration) -buildArch=$(Platform) -portable=$(PortableBuild) -BuildTests=false + -$(Configuration) -buildArch=$(Platform) -portable=$(PortableBuild) -BuildTests=false -PackageRid=$(TargetRid) $(ProjectDirectory)/build$(ShellExtension) $(BuildArguments) -- /p:ILLinkTrimAssembly=false $(ArmEnvironmentVariables) $(BuildCommand) $(ProjectDirectory)/bin/packages/$(Configuration) diff --git a/repos/dir.props b/repos/dir.props index bea8d507cd..8493a27a34 100644 --- a/repos/dir.props +++ b/repos/dir.props @@ -42,7 +42,6 @@ - diff --git a/repos/roslyn.proj b/repos/roslyn.proj index 6e6ab88a5a..2bb7c9b6ed 100644 --- a/repos/roslyn.proj +++ b/repos/roslyn.proj @@ -13,7 +13,6 @@ - diff --git a/tools-local/init-build.proj b/tools-local/init-build.proj index 7f390c42a2..f0125f348c 100644 --- a/tools-local/init-build.proj +++ b/tools-local/init-build.proj @@ -75,6 +75,12 @@ + + osx-$(Platform) + linux-$(Platform) + win-$(Platform) + + <Project ToolsVersion="15.0"> <PropertyGroup> From a0960ad0533d2d81d943853eaa44c6a6afd94910 Mon Sep 17 00:00:00 2001 From: Chris Rummel Date: Mon, 17 Sep 2018 21:57:25 -0500 Subject: [PATCH 3/4] Messed up one RID in merge. --- repos/cli.proj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/cli.proj b/repos/cli.proj index 20d05aef9c..4a754caa3b 100644 --- a/repos/cli.proj +++ b/repos/cli.proj @@ -9,7 +9,7 @@ $(TargetRid) osx-x64 - --runtime-id $(TargetRid) + --runtime-id $(OverrideTargetRid) --stage0 $(DotNetCliToolDir) $(RuntimeArg) From c3910f3fe911ca8b8d98614f1f845797a2874751 Mon Sep 17 00:00:00 2001 From: Chris Rummel Date: Tue, 18 Sep 2018 06:54:43 -0500 Subject: [PATCH 4/4] Use portable build in CoreFX to fix baseline error. --- repos/corefx.proj | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/repos/corefx.proj b/repos/corefx.proj index 2e389e3f1a..b776499d0b 100644 --- a/repos/corefx.proj +++ b/repos/corefx.proj @@ -2,7 +2,13 @@ - -$(Configuration) -buildArch=$(Platform) -portable=$(PortableBuild) -BuildTests=false -PackageRid=$(TargetRid) + + $(PortableBuild) + true + $(TargetRid) + osx-x64 + + -$(Configuration) -buildArch=$(Platform) -portable=$(OverridePortableBuild) -BuildTests=false -PackageRid=$(OverrideTargetRid) $(ProjectDirectory)/build$(ShellExtension) $(BuildArguments) -- /p:ILLinkTrimAssembly=false /bl $(ArmEnvironmentVariables) $(BuildCommand) $(ProjectDirectory)/bin/packages/$(Configuration)