[vala] valac: Enable version header by default



commit 51e5c7f5b4019417696e29a317b1b92118fe6a79
Author: Jürg Billeter <j bitron ch>
Date:   Mon Aug 9 09:48:34 2010 +0200

    valac: Enable version header by default
    
    Keep it disabled when building vala itself for bootstrapping reasons.

 compiler/valacompiler.vala |    2 +-
 configure.ac               |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 0718f14..674d5ce 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -215,7 +215,7 @@ class Vala.Compiler {
 		context.report.enable_warnings = !disable_warnings;
 		context.report.set_verbose_errors (!quiet_mode);
 		context.verbose_mode = verbose_mode;
-		context.version_header = enable_version_header;
+		context.version_header = !disable_version_header;
 
 		context.ccode_only = ccode_only;
 		context.compile_only = compile_only;
diff --git a/configure.ac b/configure.ac
index 6ebe279..35c1291 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,8 @@ fi
 AC_PATH_PROG(VALAC, valac, valac)
 AC_SUBST(VALAC)
 
+VALAFLAGS="$VALAFLAGS --disable-version-header"
+
 AC_SUBST(VALAFLAGS)
 AC_SUBST(CFLAGS)
 AC_SUBST(CPPFLAGS)



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