diff options
author | Daniel Podder <dapodd@microsoft.com> | 2017-03-07 21:14:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 21:14:57 -0600 |
commit | 1a1fdb8fb0839832b64248582082c90e166b74b5 (patch) | |
tree | 6a73c698b34a9537c3f0a0773f71c166371eb927 /config.json | |
parent | 32f10867031f0913a1bfc4e6bc159639369bf4bb (diff) | |
download | coreclr-1a1fdb8fb0839832b64248582082c90e166b74b5.tar.gz coreclr-1a1fdb8fb0839832b64248582082c90e166b74b5.tar.bz2 coreclr-1a1fdb8fb0839832b64248582082c90e166b74b5.zip |
Port Windows PGO support to master (#9985)
The bulk of this PR is a cherry-pick of commit fa02660 that shipped in
release/1.1.0, updating the build system support for PGO to support
consuming PGDs properly during release builds on Windows.
Also included are the following new changes:
* Skip restore of opdata if the requisite project.json is missing
* If the optdata package restore fails, fail the build.
* Add new build option: 'skiprestoreoptdata'
Note: This change doesn't by itself enable PGO in master yet, because
training data (optdata packages) for master don't exist on myget yet.
However, with these changes, the only step remaining to enable PGO
optimizations is to add a project.json referencing the correct optdata
package.
Diffstat (limited to 'config.json')
-rw-r--r-- | config.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config.json b/config.json index 2d25b6a013..140b1eb147 100644 --- a/config.json +++ b/config.json @@ -54,6 +54,12 @@ "values": [], "defaultValue": "" }, + "RestoreOptData": { + "description": "MsBuild target that restores optimization profile data.", + "valueType": "target", + "values": [], + "defaultValue": "" + }, "RestoreDuringBuild": { "description": "Enables/disables package restore.", "valueType": "property", @@ -435,6 +441,14 @@ "RestoreNETCorePlatforms": "default" } }, + "optdata": { + "description": "Restores optimization profile data for the repository.", + "settings": { + "Project": "./build.proj", + "RestoreDuringBuild": true, + "RestoreOptData": "default" + } + }, "ab": { "description": "Downloads the latests product packages from Azure. The values for '-AzureAccount' and '-AzureToken' are required", "settings": { |