summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Brosch <flo.brosch@gmail.com>2014-07-10 19:54:27 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-07-13 11:10:39 +0200
commit702ba3bd6bdb1cfd4c251fb7c32d06b719b9c711 (patch)
tree8a3f35a5afebaa4296592b644123ff4557c2e196
parent69b423b232f189ecb5efd28a6325ae03fa22d73e (diff)
downloadvala-702ba3bd6bdb1cfd4c251fb7c32d06b719b9c711.tar.gz
Warn if -o is used in combination with -C
-rw-r--r--compiler/valacompiler.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 0ecd3cb84..0962baca5 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -201,6 +201,9 @@ class Vala.Compiler {
context.symbols_filename = symbols_filename;
context.includedir = includedir;
context.output = output;
+ if (output != null && ccode_only) {
+ Report.warning (null, "--output and -o have no effect when -C or --ccode is set");
+ }
if (basedir == null) {
context.basedir = CodeContext.realpath (".");
} else {