[vala/0.10-parallel: 23/32] codegen: Skip visiting fast-vapis
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.10-parallel: 23/32] codegen: Skip visiting fast-vapis
- Date: Fri, 17 Sep 2010 23:02:55 +0000 (UTC)
commit b2eab9927f1632bde9c681e7b91f8c0be421f04e
Author: Ryan Lortie <desrt desrt ca>
Date: Sat Aug 28 19:39:26 2010 +0200
codegen: Skip visiting fast-vapis
Skip visiting fast-vapis in the code generator when not writing a header
file. For builds with a very large number of fast-vapi files this can
reduce compile time by more than 50%.
codegen/valaccodebasemodule.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index a7d7307..f39eb1c 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -420,7 +420,8 @@ public class Vala.CCodeBaseModule : CodeGenerator {
/* we're only interested in non-pkg source files */
var source_files = context.get_source_files ();
foreach (SourceFile file in source_files) {
- if (file.file_type != SourceFileType.PACKAGE) {
+ if (file.file_type == SourceFileType.SOURCE ||
+ (context.header_filename != null && file.file_type == SourceFileType.FAST)) {
file.accept (this);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]