BaseTools/Source/Python/build/build.py:
authorjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 21 Apr 2008 17:30:00 +0000 (17:30 +0000)
committerjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 21 Apr 2008 17:30:00 +0000 (17:30 +0000)
  Make sure that an error is raised for the 'module
  builds' phase of the build.

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

Source/Python/build/build.py

index fdd178f..96cbc56 100644 (file)
@@ -1010,6 +1010,13 @@ class Build():
                 ExitFlag.set()\r
                 BuildTask.WaitForComplete()\r
 \r
+                #\r
+                # Check for build error, and raise exception if one\r
+                # has been signaled.\r
+                #\r
+                if BuildTask.HasError():\r
+                    EdkLogger.error("build", BUILD_ERROR, BuildTask.GetErrorMessage())\r
+\r
                 # Generate FD image if there's a FDF file found\r
                 if self.Fdf != '' and self.Target in ["", "all", "fds"]:\r
                     LaunchCommand(Wa.BuildCommand + ("fds",), Wa.MakeFileDir)\r