Added more error checks
[people/mcb30/basetools.git] / Source / Python / build / build.py
index 3bc3937..fecc0e3 100644 (file)
@@ -266,6 +266,9 @@ class BuildUnit:
         self.WorkingDir = WorkingDir\r
         self.Target = Target\r
         self.BuildCommand = BuildComamnd\r
+        if BuildCommand == None or len(BuildCommand) == 0:\r
+            EdkLogger.error("build", OPTION_MISSING, "No build command found for",\r
+                            ExtraData=str(Obj))\r
 \r
     ## str() method\r
     #\r