From b6ee5725c2531fd94dd8c6e2a614a09f9d69795d Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 7 Sep 2016 14:42:16 -0400 Subject: [PATCH] Fix option initialization for win32 cross-compile. (#762) --- mesonbuild/interpreter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index a1ff25752..0c53326fb 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1622,7 +1622,9 @@ class Interpreter(): if cross_comp is not None: cross_comp.sanity_check(self.environment.get_scratch_dir(), self.environment) self.coredata.cross_compilers[lang] = cross_comp - new_options = comp.get_options() + new_options = cross_comp.get_options() + else: + new_options = comp.get_options() optprefix = lang + '_' for i in new_options: if not i.startswith(optprefix):