From f661ec4a8b78c35d8178b8a236bfc462eeb0db1f Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Wed, 29 Jun 2016 17:17:32 -0700 Subject: [PATCH] Revert "Making CompileStage batch over the different stages to avoid msbuild caching of targets." This reverts commit e100b950d2655609e53c90e51d859c2be7b8f8d0. --- build.proj | 6 +- build/Microsoft.DotNet.Cli.Compile.targets | 143 ++++++++++++--------- build/Microsoft.DotNet.Cli.Prepare.targets | 2 +- 3 files changed, 87 insertions(+), 64 deletions(-) diff --git a/build.proj b/build.proj index 0b41aee5e..f0d06e0cc 100644 --- a/build.proj +++ b/build.proj @@ -8,7 +8,7 @@ .ps1 - .sh + .sh -NoRun --norun @@ -55,6 +55,10 @@ + + + + diff --git a/build/Microsoft.DotNet.Cli.Compile.targets b/build/Microsoft.DotNet.Cli.Compile.targets index c85690d8b..f2fb8b5d0 100644 --- a/build/Microsoft.DotNet.Cli.Compile.targets +++ b/build/Microsoft.DotNet.Cli.Compile.targets @@ -9,55 +9,47 @@ + CompileStage1; + CompileStage2"> - - - - - - - @(CompileStageInputs) - $(Stage1Directory) - $(Stage1SymbolsDirectory) - $(Stage0Path)/dotnet.exe - - - @(CompileStageInputs) - $(Stage2Directory) - $(Stage2SymbolsDirectory) - $(DotnetStage1) - - + + + + + + $(Stage1Directory) + $(Stage1SymbolsDirectory) + $(Stage0Path)/dotnet.exe + - + + + + - $(RepoRoot)/src + $(Stage2Directory) + $(Stage2SymbolsDirectory) + $(DotnetStage1) + + - .exe - - - - lib - - .dll - .dylib - .so - - dotnet$(ExeSuffix) - $(DynamicLibPrefix)hostfxr$(DynamicLibSuffix) - $(DynamicLibPrefix)hostpolicy$(DynamicLibSuffix) - - %(Stage.StageDirectory) - %(Stage.StageSymbolsDirectory) + + $(StageDirectory)/sdk/$(NugetVersion) runtimes/any/native $(SdkOutputDirectory)/$(BinaryToCorehostifyRelDir) @@ -65,10 +57,6 @@ - - - - @@ -81,22 +69,12 @@ - - - - - - - - - - - - @@ -160,13 +138,46 @@ + + + + + $(RepoRoot)/src + + .exe + + + + lib + + .dll + .dylib + .so + + dotnet$(ExeSuffix) + $(DynamicLibPrefix)hostfxr$(DynamicLibSuffix) + $(DynamicLibPrefix)hostpolicy$(DynamicLibSuffix) + - - + + + + - + + + + + + + + + + + @@ -177,4 +188,12 @@ + + + + + + + + \ No newline at end of file diff --git a/build/Microsoft.DotNet.Cli.Prepare.targets b/build/Microsoft.DotNet.Cli.Prepare.targets index ada5335f2..5b9165115 100644 --- a/build/Microsoft.DotNet.Cli.Prepare.targets +++ b/build/Microsoft.DotNet.Cli.Prepare.targets @@ -25,7 +25,7 @@ $(RepoRoot)/.dotnet_stage0/Darwin $(RepoRoot)/.dotnet_stage0/Linux $(Stage0Path) - + $(RepoRoot)/artifacts/$(Rid) $(BaseOutputDirectory)/tools $(BaseOutputDirectory)/stage1