def get_langs_used_by_deps(self):
    '\n        Sometimes you want to link to a C++ library that exports C API, which\n        means the linker must link in the C++ stdlib, and we must use a C++\n        compiler for linking. The same is also applicable for objc/objc++, etc,\n        so we can keep using clink_langs for the priority order.\n\n        See: https://github.com/mesonbuild/meson/issues/1653\n        '
    langs = []
    for dep in self.external_deps:
        if (dep.language is None):
            continue
        if (dep.language not in langs):
            langs.append(dep.language)
    for link_target in itertools.chain(self.link_targets, self.link_whole_targets):
        for language in link_target.compilers:
            if (language not in langs):
                langs.append(language)
    return langs
Sometimes you want to link to a C++ library that exports C API, which
means the linker must link in the C++ stdlib, and we must use a C++
compiler for linking. The same is also applicable for objc/objc++, etc,
so we can keep using clink_langs for the priority order.

See: https://github.com/mesonbuild/meson/issues/1653
def get_langs_used_by_deps(self):
    '\n        Sometimes you want to link to a C++ library that exports C API, which\n        means the linker must link in the C++ stdlib, and we must use a C++\n        compiler for linking. The same is also applicable for objc/objc++, etc,\n        so we can keep using clink_langs for the priority order.\n\n        See: https://github.com/mesonbuild/meson/issues/1653\n        '
    langs = []
    for dep in self.external_deps:
        if (dep.language is None):
            continue
        if (dep.language not in langs):
            langs.append(dep.language)
    for link_target in itertools.chain(self.link_targets, self.link_whole_targets):
        for language in link_target.compilers:
            if (language not in langs):
                langs.append(language)
    return langs