From 18e4b3f4f9f343510923fd21a24dd459e199f2d5 Mon Sep 17 00:00:00 2001 From: georgev93 <georgeavogt93@gmail.com> Date: Wed, 27 Oct 2021 13:59:17 +0700 Subject: [PATCH] Changing xc16's linker from 'xc16-gcc.exe' to 'xc16-gcc'. Windows will still find the correct linker and now linux will be able to use its xc16-gcc as the linker. --- mesonbuild/linkers/linkers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index 334fc4f24..54915582d 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -893,7 +893,7 @@ class Xc16DynamicLinker(DynamicLinker): def __init__(self, for_machine: mesonlib.MachineChoice, *, version: str = 'unknown version'): - super().__init__(['xc16-gcc.exe'], for_machine, '', [], + super().__init__(['xc16-gcc'], for_machine, '', [], version=version) def get_link_whole_for(self, args: T.List[str]) -> T.List[str]: @@ -914,7 +914,7 @@ class Xc16DynamicLinker(DynamicLinker): return [f'-o{outputname}'] def get_search_args(self, dirname: str) -> 'T.NoReturn': - raise OSError('xc16-gcc.exe does not have a search dir argument') + raise OSError('xc16-gcc does not have a search dir argument') def get_allow_undefined_args(self) -> T.List[str]: return []