From 4e33f2f7d93fb4841158a101442bb3d27b45829a Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sat, 19 May 2018 22:52:40 +0200 Subject: [PATCH] compiler: Warn if --gir is used without --library https://bugzilla.gnome.org/show_bug.cgi?id=708693 --- compiler/valacompiler.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 50caa0c02..0b80a07b0 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -447,6 +447,11 @@ class Vala.Compiler { } library = null; + } else { + if (gir != null) { + Report.warning (null, "--gir has no effect without --library"); + gir = null; + } } // The GIRWriter places the gir_namespace and gir_version into the top namespace, so write the vapi after that stage -- 2.47.2