aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index a223b78..fd9e063 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -1048,7 +1048,7 @@ This will become a hard error in the future.''')
if state.environment.is_cross_build():
compiler = state.environment.coredata.cross_compilers.get('c')
else:
- compiler = state.environment.coredata.compilers.get('c')
+ compiler = state.environment.coredata.compilers.host.get('c')
compiler_flags = self._get_langs_compilers_flags(state, [('c', compiler)])
cflags.extend(compiler_flags[0])