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

index 98382736c6f84a65d063f82ea62ff2b71549c933..cc7abe08f59b47b41ba399de37772c42b2c4e1fc 100644 (file)
@@ -188,6 +188,9 @@ class Vala.Compiler {
                context.version_header = !disable_version_header;
 
                context.ccode_only = ccode_only;
+               if (ccode_only && cc_options != null) {
+                       Report.warning (null, "-X has no effect when -C or --ccode is set");
+               }
                context.compile_only = compile_only;
                context.header_filename = header_filename;
                if (header_filename == null && use_header) {