]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Warn if -o is used in combination with -C
authorFlorian Brosch <flo.brosch@gmail.com>
Thu, 10 Jul 2014 17:54:27 +0000 (19:54 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 13 Jul 2014 09:10:39 +0000 (11:10 +0200)
compiler/valacompiler.vala

index 0ecd3cb84c0aee368d47ed29967629517a32d6e1..0962baca583b1041bdb7418a1fc744f987089abf 100644 (file)
@@ -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 {