def get_compiler_for_source(self, src):
        for i in self.build.compilers:
            if i.can_compile(src):
                return i
        if isinstance(src, mesonlib.File):
            src = src.fname
        raise RuntimeError('No specified compiler can handle file ' + src)
dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py/Backend.get_compiler_for_source/original