def get_used_languages(self, target):
    result = set()
    for i in target.sources:
        for (lang, c) in self.coredata.compilers[target.for_machine].items():
            if c.can_compile(i):
                result.add(lang)
                break
    return result
def get_used_languages(self, target):
    result = set()
    for i in target.sources:
        for (lang, c) in self.coredata.compilers[target.for_machine].items():
            if c.can_compile(i):
                result.add(lang)
                break
    return result