diff options
author | jashook <jashoo@microsoft.com> | 2019-06-12 22:16:40 +0000 |
---|---|---|
committer | jashook <jashoo@microsoft.com> | 2019-06-12 22:16:40 +0000 |
commit | ff5f14a7c3440ab918beb3aa5b1b14ec1dbaad68 (patch) | |
tree | 6497039bc8893d7bc8de44ba32ed88a803886f1c /src/.nuget/optdata/optdata.csproj | |
parent | 938383a60ffbb716e01dbbf941a239d4bfa7aaf6 (diff) | |
download | coreclr-ff5f14a7c3440ab918beb3aa5b1b14ec1dbaad68.tar.gz coreclr-ff5f14a7c3440ab918beb3aa5b1b14ec1dbaad68.tar.bz2 coreclr-ff5f14a7c3440ab918beb3aa5b1b14ec1dbaad68.zip |
Change how build.sh/build.cmd parse the PGO and IBC versions
This will reduce fragility in our build pipeline, by explicitely controlling the output of dotnet msbuild. It also unblocks the source-build effort, as source-build will write extra console output breaking our old parsing.
Diffstat (limited to 'src/.nuget/optdata/optdata.csproj')
-rw-r--r-- | src/.nuget/optdata/optdata.csproj | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/.nuget/optdata/optdata.csproj b/src/.nuget/optdata/optdata.csproj index 62d975fe6f..57b331bf47 100644 --- a/src/.nuget/optdata/optdata.csproj +++ b/src/.nuget/optdata/optdata.csproj @@ -18,12 +18,37 @@ </RestoreSources> </PropertyGroup> + <!-- --> + <!-- Task: DumpPgoDataPackageVersion --> + <!-- --> + <!-- Notes: --> + <!-- --> + <!-- DumpPgoDataPackageVersion is used by build.sh and build.cmd to pass --> + <!-- the version information to cmake. The task will write a file to the --> + <!-- intermediates directory to be read back by build.cmd/sh. The path for --> + <!-- the file is $(OptDataIntermediateOutputPath)\optdataversion.txt --> + <!-- --> + <Target Name="DumpPgoDataPackageVersion"> - <Message Importance="high" Text="$(optimizationPGOCoreCLRVersion)" /> + <!-- Keep the old message for backcompat. --> + <Message Text="$(optimizationIBCCoreCLRVersion)" Importance="High" /> + <WriteLinesToFile File="$(OptDataIntermediateOutputPath)\optdataversion.txt" Lines="$(optimizationIBCCoreCLRVersion)" Overwrite="true"/> </Target> + <!-- --> + <!-- Task: DumpIbcDataPackageVersion --> + <!-- --> + <!-- Notes: --> + <!-- --> + <!-- DumpIbcDataPackageVersion is used by build.sh and build.cmd to pass --> + <!-- the version information to cmake. The task will write a file to the --> + <!-- intermediates directory to be read back by build.cmd/sh. The path for --> + <!-- the file is $(OptDataIntermediateOutputPath)\ibcoptdataversion.txt --> + <!-- --> <Target Name="DumpIbcDataPackageVersion"> + <!-- Keep the old message for backcompat. --> <Message Importance="high" Text="$(optimizationIBCCoreCLRVersion)" /> + <WriteLinesToFile File="$(OptDataIntermediateOutputPath)\ibcoptdataversion.txt" Lines="$(optimizationIBCCoreCLRVersion)" Overwrite="true"/> </Target> </Project> |