summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorMark Lee <marklee@src.gnome.org>2009-09-05 23:15:24 -0700
committerJürg Billeter <j@bitron.ch>2009-09-14 18:20:24 +0200
commit1bd3c326105c75a9bca21dfeb850ab1707a5f152 (patch)
tree8a1b11645d933dfe84f81f8fa577c992a5bd908d /compiler
parentfc3150d0d356286917d57d7f057240c5a392d3bb (diff)
downloadvala-1bd3c326105c75a9bca21dfeb850ab1707a5f152.tar.gz
Do not check for an entry point when compiling a library
Fixes bug 594291.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 75a46f8e6..e1cf96b1b 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");