[vala] Warn if -o is used in combination with -C
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Warn if -o is used in combination with -C
- Date: Sun, 13 Jul 2014 09:14:25 +0000 (UTC)
commit 702ba3bd6bdb1cfd4c251fb7c32d06b719b9c711
Author: Florian Brosch <flo brosch gmail com>
Date: Thu Jul 10 19:54:27 2014 +0200
Warn if -o 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 0ecd3cb..0962bac 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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]