]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Added a test to check the # of threads iff threading is enabled. If it's not enabled...
authorlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 10 Oct 2006 17:30:59 +0000 (17:30 +0000)
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 10 Oct 2006 17:30:59 +0000 (17:30 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1711 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java

index 44eec532169a1c8260ac31a7afe46098fc9db68c..1165263898d1e44720fcd89d83789ac3f15d8f62 100644 (file)
@@ -375,7 +375,10 @@ public class FrameworkBuildTask extends Task{
         }\r
 \r
         str = getValue(ToolDefinitions.TARGET_KEY_MAX_CONCURRENT_THREAD_NUMBER, targetFileInfo);\r
-        if (str != null ) {\r
+        //\r
+        // Need to check the # of threads iff multithread is enabled.\r
+        //\r
+        if ((multithread) && (str != null )) {\r
             try {\r
                 int threadNum = Integer.parseInt(str);\r
                 if (threadNum > 0) {\r