Port Windows PGO support to master (#9985)
authorDaniel Podder <dapodd@microsoft.com>
Wed, 8 Mar 2017 03:14:57 +0000 (21:14 -0600)
committerGitHub <noreply@github.com>
Wed, 8 Mar 2017 03:14:57 +0000 (21:14 -0600)
commit1a1fdb8fb0839832b64248582082c90e166b74b5
tree6a73c698b34a9537c3f0a0773f71c166371eb927
parent32f10867031f0913a1bfc4e6bc159639369bf4bb
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.
build.cmd
build.proj
build.sh
config.json
extract-from-json.py [new file with mode: 0755]
pgosupport.cmake