[vala] Do not check for an entry point when compiling a library
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Do not check for an entry point when compiling a library
- Date: Mon, 14 Sep 2009 16:20:54 +0000 (UTC)
commit 1bd3c326105c75a9bca21dfeb850ab1707a5f152
Author: Mark Lee <marklee src gnome org>
Date: Sat Sep 5 23:15:24 2009 -0700
Do not check for an entry point when compiling a library
Fixes bug 594291.
compiler/valacompiler.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 75a46f8..e1cf96b 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -317,7 +317,7 @@ class Vala.Compiler {
var analyzer = new SemanticAnalyzer ();
analyzer.analyze (context);
- if (!ccode_only && !compile_only) {
+ if (!ccode_only && !compile_only && library == null) {
// building program, require entry point
if (context.entry_point == null) {
Report.error (null, "program does not contain a static `main' method");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]