Author: miguel
Date: 2005-04-10 11:57:45 -0400 (Sun, 10 Apr 2005)
New Revision: 42760

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/driver.cs
Log:
2005-04-10  Miguel de Icaza  <[EMAIL PROTECTED]>

        * driver.cs (MainDriver): Stop processing if the CLS stage found
        errors. 

Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2005-04-10 15:54:35 UTC (rev 42759)
+++ trunk/mcs/mcs/ChangeLog     2005-04-10 15:57:45 UTC (rev 42760)
@@ -1,6 +1,9 @@
 2005-04-10  Miguel de Icaza  <[EMAIL PROTECTED]>
 
-       * driver.cs (CompilerCallableEntryPoint.InvokeCompiler): Always
+       * driver.cs (MainDriver): Stop processing if the CLS stage found
+       errors. 
+
+       (CompilerCallableEntryPoint.InvokeCompiler): Always
        reset after execution;   Take a TextWriter argument for the
        output.
 

Modified: trunk/mcs/mcs/driver.cs
===================================================================
--- trunk/mcs/mcs/driver.cs     2005-04-10 15:54:35 UTC (rev 42759)
+++ trunk/mcs/mcs/driver.cs     2005-04-10 15:57:45 UTC (rev 42760)
@@ -1577,7 +1577,7 @@
                                return false;
                        }
                        
-                       if (RootContext.VerifyClsCompliance) { 
+                       if (RootContext.VerifyClsCompliance) {
                                CodeGen.Assembly.ResolveClsCompliance ();
                                if (CodeGen.Assembly.IsClsCompliant) {
                                        
AttributeTester.VerifyModulesClsCompliance ();
@@ -1585,6 +1585,8 @@
                                        
AttributeTester.VerifyTopLevelNameClsCompliance ();
                                }
                        }
+                       if (Report.Errors > 0)
+                               return false;
                        
                        //
                        // The code generator

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to