Browse Source

+ detect assembler errors when using -ap

Jonas Maebe 21 years ago
parent
commit
a8d3a47a61
1 changed files with 8 additions and 2 deletions
  1. 8 2
      compiler/assemble.pas

+ 8 - 2
compiler/assemble.pas

@@ -564,7 +564,10 @@ Implementation
         AsmFlush;
         AsmFlush;
 {$ifdef hasunix}
 {$ifdef hasunix}
         if DoPipe then
         if DoPipe then
-         PClose(outfile)
+          begin
+            if PClose(outfile) <> 0 then
+              GenerateError;
+          end
         else
         else
 {$endif}
 {$endif}
          begin
          begin
@@ -1626,7 +1629,10 @@ Implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.70  2004-07-01 15:42:53  peter
+  Revision 1.71  2004-07-01 18:28:54  jonas
+    + detect assembler errors when using -ap
+
+  Revision 1.70  2004/07/01 15:42:53  peter
     * fix wrong calculation of .bss section
     * fix wrong calculation of .bss section
 
 
   Revision 1.69  2004/06/20 08:55:28  florian
   Revision 1.69  2004/06/20 08:55:28  florian