def check_stdlibs(self):
    for for_machine in MachineChoice:
        props = self.build.environment.properties[for_machine]
        for l in self.coredata.compilers[for_machine].keys():
            try:
                di = mesonlib.stringlistify(props.get_stdlib(l))
                if (len(di) != 2):
                    raise InterpreterException(('Stdlib definition for %s should have exactly two elements.' % l))
                (projname, depname) = di
                subproj = self.do_subproject(projname, 'meson', {})
                self.build.stdlibs.host[l] = subproj.get_variable_method([depname], {})
            except KeyError:
                pass
            except InvalidArguments:
                pass
def check_stdlibs(self):
    for for_machine in MachineChoice:
        props = self.build.environment.properties[for_machine]
        for l in self.coredata.compilers[for_machine].keys():
            try:
                di = mesonlib.stringlistify(props.get_stdlib(l))
                if (len(di) != 2):
                    raise InterpreterException(('Stdlib definition for %s should have exactly two elements.' % l))
                (projname, depname) = di
                subproj = self.do_subproject(projname, 'meson', {})
                self.build.stdlibs.host[l] = subproj.get_variable_method([depname], {})
            except KeyError:
                pass
            except InvalidArguments:
                pass