aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-01-29 17:21:13 -0500
committerDylan Baker <dylan@pnwbakers.com>2019-02-14 11:18:55 -0800
commit3e9396f2590372f484149b48bf3f1c108c9111c3 (patch)
tree99e46579daa695626b8ae3992f643fad9c27f0a2 /mesonbuild
parentcc8af259c813e239292cccb60bacfbc7641e12a9 (diff)
downloadmeson-3e9396f2590372f484149b48bf3f1c108c9111c3.zip
meson-3e9396f2590372f484149b48bf3f1c108c9111c3.tar.gz
meson-3e9396f2590372f484149b48bf3f1c108c9111c3.tar.bz2
Fix cross static linker lookup
Need to search based off of `cross_comp`, not `comp`. Fixes #4822
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index c03bae1..e33cb7f 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -2704,7 +2704,7 @@ external dependencies (including libraries) must go to "dependencies".''')
version_string = '(%s %s)' % (cross_comp.id, cross_comp.version)
mlog.log('Cross', cross_comp.get_display_language(), 'compiler:',
mlog.bold(' '.join(cross_comp.get_exelist())), version_string)
- self.build.ensure_static_cross_linker(comp)
+ self.build.ensure_static_cross_linker(cross_comp)
return success
def program_from_file_for(self, for_machine, prognames, silent):