Fix using the nopgooptimize flag in the CoreCLR build scripts. (#31931)
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Fri, 7 Feb 2020 21:38:56 +0000 (13:38 -0800)
committerGitHub <noreply@github.com>
Fri, 7 Feb 2020 21:38:56 +0000 (13:38 -0800)
commit7814f9772ce47fe9134658e852023aaa8dc98019
treecafb3f4b2c859dd58eac5f0e64fa6983f22277a2
parenta6228dbbc3fb2b97596eb2eb454b31103debbd0a
Fix using the nopgooptimize flag in the CoreCLR build scripts. (#31931)

* Only try to resolve PGO package path when PGOOptimize is enabled.

* Don't resolve PGO files unless we're optimizing with PGO.

* Only get the PgoDataPackagePath whne PGOOptimize is enabled.
src/coreclr/build.cmd
src/coreclr/build.sh
src/coreclr/pgosupport.cmake