From: Rico Tzschichholz Date: Sat, 19 May 2018 20:52:40 +0000 (+0200) Subject: compiler: Warn if --gir is used without --library X-Git-Tag: 0.41.90~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f5b40ff5b8d07dcf1d037d5018241740a83c11a;p=thirdparty%2Fvala.git compiler: Warn if --gir is used without --library https://bugzilla.gnome.org/show_bug.cgi?id=708693 --- diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 733db4526..c2f73c17e 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -468,6 +468,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