[vala/parallel] compiler: imply nostdpkg when doing fast vapi



commit 13f8f22da315b1af63dcc90c2c420384e587f2aa
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Aug 19 09:55:38 2010 -0400

    compiler: imply nostdpkg when doing fast vapi
    
    Makes parallel fast-internal-vapi generation for vala/ go from 2.3s to
    0.1s.

 compiler/valacompiler.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 1885464..5402a43 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -257,6 +257,7 @@ class Vala.Compiler {
 		} else {
 			Report.error (null, "Unknown profile %s".printf (profile));
 		}
+		nostdpkg |= fast_internal_vapi_filename != null;
 		context.nostdpkg = nostdpkg;
 
 		context.entry_point_name = entry_point;
@@ -326,7 +327,7 @@ class Vala.Compiler {
 			}
 			packages = null;
 		}
-		
+
 		if (context.report.get_errors () > 0) {
 			return quit ();
 		}
@@ -386,7 +387,7 @@ class Vala.Compiler {
 		if (context.report.get_errors () > 0) {
 			return quit ();
 		}
-		
+
 		var parser = new Parser ();
 		parser.parse (context);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]