

def determine_linker(self, target, src):
    if isinstance(target, build.StaticLibrary):
        return self.build.static_linker
    if (len(self.build.compilers) == 1):
        return self.build.compilers[0]
    cpp = None
    for c in self.build.compilers:
        if (c.get_language() == 'cpp'):
            cpp = s
            break
    if (cpp is not None):
        for s in src:
            if c.can_compile(s):
                return cpp
    for c in self.build.compilers:
        if (c.get_language() == 'vala'):
            continue
        for s in src:
            if c.can_compile(s):
                return c
    raise RuntimeError('Unreachable code')

dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py Backend.determine_linker/VarMisuse@91/107 `c`->`s`