* Add enforcepgo for release Windows_NT default release build
* Restrict enforment of PGO to PGO supported builds
* Expand the usage of enforcpgo
* Fix break in the if-else control flow
Commit migrated from https://github.com/dotnet/coreclr/commit/
b07a921524ec9e8c8f5e482707f9fc1b9b86d95e
buildCommands += "tests\\scripts\\build_illink.cmd clone ${arch}"
}
+ // If it is a release build for windows, ensure PGO is used, else fail the build
+ if ((lowerConfiguration == 'release') && (scenario in Constants.basicScenarios) && (architecture != 'x86lb')) {
+ buildOpts += ' enforcepgo'
+ }
+
if (Constants.jitStressModeScenarios.containsKey(scenario) ||
scenario == 'default' ||
scenario == 'r2r' ||