]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java
Auto close multi-thread flag when stand-alone module build. Also change some logs.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / FrameworkBuildTask.java
index 6d380d9654ae5e3b07b5df56e1894b9f9f676661..d1bf1cc90aa3107b6aa057386666413bb5aa398f 100644 (file)
@@ -103,7 +103,7 @@ public class FrameworkBuildTask extends Task{
     ///\r
     /// The concurrent thread number\r
     ///\r
-    public static int MAX_CONCURRENT_THREAD_NUMBER = 1;\r
+    public static int MAX_CONCURRENT_THREAD_NUMBER = 2;\r
 \r
     ///\r
     /// there are three type: all (build), clean and cleanall\r
@@ -275,6 +275,7 @@ public class FrameworkBuildTask extends Task{
         // Build every MSA files (SINGLE MODULE BUILD)\r
         //\r
         else if (buildFile.getName().endsWith(ToolDefinitions.MSA_EXTENSION)) {\r
+            multithread = false; \r
             File tmpFile = new File(GlobalData.getWorkspacePath() + File.separatorChar + activePlatform);\r
             EdkLog.log(this, "Using the FPD file [" + tmpFile.getPath() + "] for the active platform. ");\r
             EdkLog.log(this, "Processing the MSA file [" + buildFile.getPath() + "] ..>> ");\r
@@ -420,7 +421,7 @@ public class FrameworkBuildTask extends Task{
         if (str != null && str.trim().equalsIgnoreCase("Enable")) {\r
             multithread = true;\r
         }\r
-            \r
+\r
         str = getValue(ToolDefinitions.TARGET_KEY_MAX_CONCURRENT_THREAD_NUMBER, targetFileInfo);\r
         if (str != null ) {\r
             try {\r