Changed way to call LaunchCommand
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 31 Oct 2007 09:14:06 +0000 (09:14 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 31 Oct 2007 09:14:06 +0000 (09:14 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@862 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/build/build.py

index 3c0ab1c..6d8df01 100644 (file)
@@ -530,7 +530,7 @@ class BuildTask:
     ## Start build task thread\r
     #\r
     def Start(self):\r
-        Command = self.BuildItem.BuildCommand + " " + self.BuildItem.Target\r
+        Command = self.BuildItem.BuildCommand + (self.BuildItem.Target,)\r
         self.BuildTread = Thread(target=self._CommandThread, args=(Command, self.BuildItem.WorkingDir))\r
         self.BuildTread.setName("Command-Thread")\r
         self.BuildTread.setDaemon(False)\r
@@ -938,7 +938,7 @@ class Build():
 \r
                 # Generate FD image if there's a FDF file found\r
                 if self.Fdf != '' and self.Target in ["", "all", "fds"]:\r
-                    LaunchCommand(Pa.GetBuildCommand() + " fds", Pa.GetMakeFileDir())\r
+                    LaunchCommand(Pa.GetBuildCommand() + ("fds",), Pa.GetMakeFileDir())\r
 \r
     ## Launch the module or platform build\r
     #\r