[vala] Warn if --save-temps is used in combination with -C



commit 4cef298f02c407af235302786aafd4af14e5c88e
Author: Florian Brosch <flo brosch gmail com>
Date:   Thu Jul 10 18:56:26 2014 +0200

    Warn if --save-temps is used in combination with -C

 compiler/valacompiler.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index cc7abe0..6583cb2 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]