From 2c0fbe161d61d2d15d29892456544442ab1c4ff6 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 21 Sep 2020 10:38:17 -0700 Subject: compilers: make is_cross part of the base Compiler class Every class needs to set this, so it should be part of the base. For classes that require is_cross, the positional argument remains in their signature. For those that don't, they just allow the base class to set their value to it's default of False. --- mesonbuild/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/environment.py') diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 4623049..5a4b2ac 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -1821,7 +1821,8 @@ class Environment: elif 'gdc' in out: linker = self._guess_nix_linker(exelist, compilers.GnuDCompiler, for_machine) return compilers.GnuDCompiler( - exelist, version, for_machine, info, arch, is_cross, exe_wrap, + exelist, version, for_machine, info, arch, + exe_wrapper=exe_wrap, is_cross=is_cross, full_version=full_version, linker=linker) elif 'The D Language Foundation' in out or 'Digital Mars' in out: # DMD seems to require a file -- cgit v1.1