From: Florian Brosch Date: Thu, 10 Jul 2014 17:54:27 +0000 (+0200) Subject: Warn if -o is used in combination with -C X-Git-Tag: 0.25.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=702ba3bd6bdb1cfd4c251fb7c32d06b719b9c711;p=thirdparty%2Fvala.git Warn if -o is used in combination with -C --- 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 {