diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-12-06 17:03:39 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-12-06 17:03:39 +0000 |
commit | 0effe3d81561412153aacd71586b598269c1f896 (patch) | |
tree | 5d51c21c85ac58be126b349421cdf9f3dc15e2eb | |
parent | dbf5a65f39917543a239a1b514fe0979815d9a01 (diff) | |
download | fpc-0effe3d81561412153aacd71586b598269c1f896.tar.gz |
* abort compilation if an error occurred during wpo initialisation
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/wpo@12308 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r-- | compiler/wpo.pas | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/wpo.pas b/compiler/wpo.pas index 8fbbc1de79..1d3cf4d6e4 100644 --- a/compiler/wpo.pas +++ b/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; |