GNOME Bugzilla – Bug 708693
valac with --gir and no --library silently fails to create .gir
Last modified: 2018-05-19 21:25:05 UTC
If you run valac with the --gir argument but no --library argument, it will run without creating the .gir file. Obviously, it doesn't make sense to create a .gir for an executable but this was a library (no main(), etc.) that I simply failed to include --library for. The best solution is to probably just issue a warning for the combination of: --gir: exists; --library: missing, because otherwise an autotools setup can continue along and g-i-compiler will try to generate the .typelib, fail to find a .gir, and break the build. It's obvious that the .gir is missing, but it's not obvious why, at that point.
Created attachment 372226 [details] [review] compiler: Warn if --gir is used without --library
*** Bug 648429 has been marked as a duplicate of this bug. ***
Attachment 372226 [details] pushed as 6f5b40f - compiler: Warn if --gir is used without --library