mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
Merge branch 'no-override-g-ir-compiler' into 'main'
build: Only override g-ir-compiler when GIR generation is enabled See merge request GNOME/glib!3876
This commit is contained in:
commit
a59499ab0a
@ -24,6 +24,10 @@ gicompilerepository = executable('gi-compile-repository', 'compiler.c',
|
||||
c_args: custom_c_args,
|
||||
)
|
||||
|
||||
# Replace the default g-ir-compiler target with the version we
|
||||
# just built.
|
||||
meson.override_find_program('g-ir-compiler', gicompilerepository)
|
||||
# Only override the user-installed compiler if we need to generate the GIRs
|
||||
# GLib, Gio, and GObject...
|
||||
if enable_gir
|
||||
# Replace the default g-ir-compiler target with the version we
|
||||
# just built.
|
||||
meson.override_find_program('g-ir-compiler', gicompilerepository)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user