meson: underscorify immodule name when using it as a macro name
This resulted in -DINCLUDE_IM_ti-et getting passed to gcc resulting in lots of warnings. Use underscorify() so we get the correct -DINCLUDE_IM_ti_et instead.
This commit is contained in:
@ -952,7 +952,7 @@ foreach l: immodules
|
|||||||
cflags = l.get(3, [])
|
cflags = l.get(3, [])
|
||||||
|
|
||||||
if cond and builtin_immodules
|
if cond and builtin_immodules
|
||||||
gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name)]
|
gtk_cargs += ['-DINCLUDE_IM_@0@'.format(name.underscorify())]
|
||||||
mod = static_library('staticimmodule-@0@'.format(name),
|
mod = static_library('staticimmodule-@0@'.format(name),
|
||||||
sources + gtk_dep_sources,
|
sources + gtk_dep_sources,
|
||||||
dependencies: gtk_deps + [libgdk_dep] ,
|
dependencies: gtk_deps + [libgdk_dep] ,
|
||||||
|
|||||||
Reference in New Issue
Block a user