From 4487a256e0e37ac4faf949ffd5e3e6f66732fabf Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 11 Sep 2022 22:35:30 -0400 Subject: [PATCH] compilers: remove dead code It doesn't matter whether the language is c or cpp, xc16 only has a C compiler so that's what this has to be. --- mesonbuild/compilers/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index accdd66f1..2c9c6ffb8 100644 --- a/mesonbuild/compilers/detect.py +++ b/mesonbuild/compilers/detect.py @@ -647,7 +647,7 @@ def _detect_c_or_cpp_compiler(env: 'Environment', lang: str, for_machine: Machin exe_wrap, full_version=full_version, linker=linker) if 'Microchip Technology' in out: - cls = Xc16CCompiler if lang == 'c' else Xc16CCompiler + cls = Xc16CCompiler env.coredata.add_lang_args(cls.language, cls, for_machine, env) linker = Xc16DynamicLinker(for_machine, version=version) return cls(