Browse Source

* abort compilation if an error occurred during wpo initialisation

git-svn-id: branches/wpo@12308 -
Jonas Maebe 17 years ago
parent
commit
82bbc2ee2c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      compiler/wpo.pas

+ 5 - 0
compiler/wpo.pas

@@ -38,6 +38,7 @@ implementation
 
   uses
     globals,
+    comphook,
     wpobase, wpoinfo;
 
   { called after command line parameters have been parsed }
@@ -58,6 +59,10 @@ implementation
 
       { parse input }
       wpoinfomanager.parseandcheckwpoinfo;
+
+      { abort if error }
+      if (codegenerror) then
+        raise ECompilerAbort.Create;
     end;