[vala] Warn if -X is used in combination with -C
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Warn if -X is used in combination with -C
- Date: Sun, 13 Jul 2014 09:14:10 +0000 (UTC)
commit 74d32300100a3037685c635ba09b78392f70459b
Author: Florian Brosch <flo brosch gmail com>
Date: Thu Jul 10 05:05:09 2014 +0200
Warn if -X 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 9838273..cc7abe0 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]