def METHOD_NAME(self, name=None, cfg=None):
    """Build toy."""
    # Allow overwrite from Toy-Extension
    if cfg is None:
        cfg = self.cfg
    if name is None:
        name = self.name
    cmd = compose_toy_build_cmd(self.cfg, name, cfg['prebuildopts'], cfg['buildopts'])
    # purposely run build command without checking exit code;
    # we rely on this in test_toy_build_hooks
    (out, ec) = run_cmd(cmd, log_ok=False, log_all=False)
    if ec:
        print_warning("Command '%s' failed, but we'll ignore it..." % cmd)