Skip to content

Commit

Permalink
gnome.py: correctly pick the compiler for gtk-doc builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kanavin authored and dcbaker committed Jun 27, 2019
1 parent 05da008 commit ecbfc08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mesonbuild/modules/gnome.py
Expand Up @@ -1045,10 +1045,7 @@ def _get_build_args(self, kwargs, state, depends):

cflags.extend(state.environment.coredata.get_external_args(MachineChoice.HOST, 'c'))
ldflags.extend(state.environment.coredata.get_external_link_args(MachineChoice.HOST, 'c'))
if state.environment.is_cross_build():
compiler = state.environment.coredata.cross_compilers.get('c')
else:
compiler = state.environment.coredata.compilers.host.get('c')
compiler = state.environment.coredata.compilers[MachineChoice.HOST]['c']

compiler_flags = self._get_langs_compilers_flags(state, [('c', compiler)])
cflags.extend(compiler_flags[0])
Expand Down

0 comments on commit ecbfc08

Please sign in to comment.