@FeatureNewKwargs('add_languages', '0.54.0', ['native'])
@permittedKwargs(permitted_kwargs['add_languages'])
@stringArgs
def func_add_languages(self, node, args, kwargs):
    (disabled, required, feature) = extract_required_kwarg(kwargs, self.subproject)
    if disabled:
        for lang in sorted(args, key=compilers.sort_clink):
            mlog.log('Compiler for language', mlog.bold(lang), 'skipped: feature', mlog.bold(feature), 'disabled')
        return False
    if ('native' in kwargs):
        return self.add_languages(args, required, self.machine_from_native_kwarg(kwargs))
    else:
        mlog.warning('add_languages is missing native:, assuming languages are wanted for both host and build.', location=self.current_node)
        success = self.add_languages(args, False, MachineChoice.BUILD)
        success &= self.add_languages(args, required, MachineChoice.HOST)
        return success
@FeatureNewKwargs('add_languages', '0.54.0', ['native'])
@permittedKwargs(permitted_kwargs['add_languages'])
@stringArgs
def func_add_languages(self, node, args, kwargs):
    (disabled, required, feature) = extract_required_kwarg(kwargs, self.subproject)
    if disabled:
        for lang in sorted(args, key=compilers.sort_clink):
            mlog.log('Compiler for language', mlog.bold(lang), 'skipped: feature', mlog.bold(feature), 'disabled')
        return False
    if ('native' in kwargs):
        return self.add_languages(args, required, self.machine_from_native_kwarg(kwargs))
    else:
        mlog.warning('add_languages is missing native:, assuming languages are wanted for both host and build.', location=self.current_node)
        success = self.add_languages(args, False, MachineChoice.BUILD)
        success &= self.add_languages(args, required, MachineChoice.HOST)
        return success