mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-05 13:19:21 +02:00
girparser: Don't rely on gi-compile-repository exporting debug level
It seems cleaner to store this in the parser, rather than having the compiler export a global variable that the parser must read. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@@ -124,7 +124,7 @@ out:
|
||||
return success;
|
||||
}
|
||||
|
||||
GLogLevelFlags logged_levels;
|
||||
static GLogLevelFlags logged_levels;
|
||||
|
||||
static void
|
||||
log_handler (const gchar *log_domain,
|
||||
@@ -198,6 +198,7 @@ main (int argc, char **argv)
|
||||
includedirs ? g_strv_length (includedirs) : 0);
|
||||
|
||||
parser = gi_ir_parser_new ();
|
||||
gi_ir_parser_set_debug (parser, logged_levels);
|
||||
|
||||
gi_ir_parser_set_includes (parser, (const char *const *) includedirs);
|
||||
|
||||
|
Reference in New Issue
Block a user