a. Fixed an issue which a incorrect command (no leading space/tab) generated in top...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 31 Oct 2007 10:37:17 +0000 (10:37 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 31 Oct 2007 10:37:17 +0000 (10:37 +0000)
b. Added code to check zero thread number and disable multi-thread build mode if zero thread number.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@863 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/AutoGen/GenMake.py
Source/Python/build/build.py

index b87f414..f8adc26 100755 (executable)
@@ -480,7 +480,7 @@ ${BEGIN}\tcd $(WORKSPACE)${separator}${library_build_directory} && "$(MAKE)" $(M
 #\r
 build_modules:\r
 ${BEGIN}\tcd $(WORKSPACE)${separator}${module_build_directory} && "$(MAKE)" $(MAKE_FLAGS) pbuild\r
-\t${END}cd $(BUILD_DIR)\r
+\t${END}\tcd $(BUILD_DIR)\r
 \r
 #\r
 # Build Flash Device Image\r
index 6d8df01..e987035 100644 (file)
@@ -700,11 +700,13 @@ class Build():
         if self.ThreadNumber == None or self.ThreadNumber == "":\r
             self.ThreadNumber = self.TargetTxt.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_MAX_CONCURRENT_THREAD_NUMBER]\r
             if self.ThreadNumber == '':\r
-                self.ThreadNumber = 1\r
+                self.ThreadNumber = 0\r
             else:\r
                 self.ThreadNumber = int(self.ThreadNumber, 0)\r
 \r
-        if self.TargetTxt.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_MULTIPLE_THREAD].lower() in ["enable", "true"]:\r
+        if self.ThreadNumber == 0:\r
+            self.SpawnMode = False\r
+        elif self.TargetTxt.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_MULTIPLE_THREAD].lower() in ["enable", "true"]:\r
             self.SpawnMode = True\r
 \r
         if self.PlatformFile == None:\r