From 11248eb203e16dae6dc288d148b20b44fb0a5ac0 Mon Sep 17 00:00:00 2001 From: Cody Schafer Date: Thu, 27 Jun 2019 13:36:09 -0400 Subject: sanitycheckc: avoid linking sanitycheckc when cross compiling --- mesonbuild/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/build.py') diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 9d40944..55b1629 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1062,7 +1062,7 @@ You probably should put it in link_with instead.''') msg += "Use the 'pic' option to static_library to build with PIC." raise InvalidArguments(msg) if self.for_machine is not t.for_machine: - msg = 'Tried to mix libraries for machines {1} and {2} in target {!r}'.format(self.name, self.for_machine, t.for_machine) + msg = 'Tried to mix libraries for machines {} and {} in target {!r}'.format(self.for_machine, t.for_machine, self.name) if self.environment.is_cross_build(): raise InvalidArguments(msg + ' This is not possible in a cross build.') else: -- cgit v1.1