Revert "Reenable PGO on Linux Release builds" (#14645)
authorJan Kotas <jkotas@microsoft.com>
Sat, 21 Oct 2017 02:57:33 +0000 (19:57 -0700)
committerGitHub <noreply@github.com>
Sat, 21 Oct 2017 02:57:33 +0000 (19:57 -0700)
netci.groovy

index da07030ab96cb3befd4f53057b5df8559791d5a1..f47dc0fe6cc37e26c959a3a8029d9c7c542fe56f 100755 (executable)
@@ -1912,12 +1912,17 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR
                         standaloneGc = 'buildstandalonegc'
                     }
                     
+                    def disablePgo = ''
+                    if (lowerConfiguration == 'release') {
+                        disablePgo = 'nopgooptimize'
+                    }
+
                     if (!enableCorefxTesting) {
                         // We run pal tests on all OS but generate mscorlib (and thus, nuget packages)
                         // only on supported OS platforms.
                         def bootstrapRid = Utilities.getBoostrapPublishRid(os)
                         def bootstrapRidEnv = bootstrapRid != null ? "__PUBLISH_RID=${bootstrapRid} " : ''
-                        buildCommands += "${bootstrapRidEnv}./build.sh verbose ${lowerConfiguration} ${architecture} ${standaloneGc}"
+                        buildCommands += "${bootstrapRidEnv}./build.sh verbose ${lowerConfiguration} ${architecture} ${standaloneGc} ${disablePgo}"
                         buildCommands += "src/pal/tests/palsuite/runpaltests.sh \${WORKSPACE}/bin/obj/${osGroup}.${architecture}.${configuration} \${WORKSPACE}/bin/paltestout"
 
                         // Set time out