Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavis Goodin <dagood@microsoft.com>2017-04-13 21:48:47 +0300
committerDavis Goodin <dagood@microsoft.com>2017-04-13 21:48:47 +0300
commit226f972465ee44264e6203d1b66c502a7ec8518e (patch)
tree0ba63ac7fda444b9ecc37c17cbdc939ffa00667e /Tools-Override
parent6738caf66a1fc6ad990549d8f176c8a0543d79ee (diff)
Fix IBC data package restore by moving it to Sync
Diffstat (limited to 'Tools-Override')
-rw-r--r--Tools-Override/codeOptimization.targets7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools-Override/codeOptimization.targets b/Tools-Override/codeOptimization.targets
index 7ff5975957..254280d263 100644
--- a/Tools-Override/codeOptimization.targets
+++ b/Tools-Override/codeOptimization.targets
@@ -13,7 +13,7 @@
<!-- If IBC data hasn't been merged with the IL yet, preprocess it first -->
<Target Name="PreProcessIBCData"
BeforeTargets="OptimizeWithTrainingData"
- DependsOnTargets="RestoreOptimizationDataPackage;ResolveOptionalTools"
+ DependsOnTargets="ResolveOptionalTools"
Condition="'$(OS)'=='Windows_NT' and '$(EnableProfileGuidedOptimization)'=='true' and Exists('$(OptimizationDataDir)$(AssemblyName).dll')">
<!-- Find IBCMerge as a resolved optional tool. -->
@@ -44,7 +44,7 @@
<Target Name="OptimizeWithTrainingData"
AfterTargets="AfterBuild"
BeforeTargets="CopyFilesToOutputDirectory"
- DependsOnTargets="RestoreOptimizationDataPackage;ResolveOptionalTools"
+ DependsOnTargets="ResolveOptionalTools"
Condition="'$(OS)'=='Windows_NT' and '$(EnableProfileGuidedOptimization)'=='true' and Exists('$(OptimizationDataDir)$(AssemblyName).pgo')">
<!-- Find IBCMerge as a resolved optional tool. -->
@@ -81,7 +81,8 @@
</Target>
<!-- We need the OptimizationData package in order to be able to optimize the assembly -->
- <Target Name="RestoreOptimizationDataPackage" BeforeTargets="CoreCompile"
+ <Target Name="RestoreOptimizationDataPackage"
+ BeforeTargets="Sync"
Condition="'$(EnableProfileGuidedOptimization)'=='true' and '$(RestoreDefaultOptimizationDataPackage)'=='true' and !Exists('$(OptimizationDataDir)project.csproj')">
<!-- Dynamically create a project.json file used to restore the optimization data-->
<PropertyGroup>