]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Do not check for an entry point when compiling a library
authorMark Lee <marklee@src.gnome.org>
Sun, 6 Sep 2009 06:15:24 +0000 (23:15 -0700)
committerJürg Billeter <j@bitron.ch>
Mon, 14 Sep 2009 16:20:24 +0000 (18:20 +0200)
Fixes bug 594291.

compiler/valacompiler.vala

index 75a46f8e66daa82c6f8d0ff2cb634a248615e6e4..e1cf96b1b3ecfadf463a1fe9bb299df1694a7e14 100644 (file)
@@ -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");