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

index cc7abe08f59b47b41ba399de37772c42b2c4e1fc..6583cb2e9c48d79c8c3780b9055026b5c7d133ac 100644 (file)
@@ -218,6 +218,9 @@ class Vala.Compiler {
                context.thread = thread;
                context.mem_profiler = mem_profiler;
                context.save_temps = save_temps;
+               if (ccode_only && save_temps) {
+                       Report.warning (null, "--save-temps has no effect when -C or --ccode is set");
+               }
                if (profile == "gobject-2.0" || profile == "gobject" || profile == null) {
                        // default profile
                        context.profile = Profile.GOBJECT;