• Home
  • Raw
  • Download

Lines Matching refs:fmt

57 		return fmt.Sprintf("node-unknown[%d]", int(s))
100 return "", fmt.Errorf("Multiple output file candidates in %s", ss)
112 return "", fmt.Errorf("Cannot find the depfile in %s", ss)
116 return "", fmt.Errorf("Multiple output file candidates in %s", ss)
143 return cmdline, "", fmt.Errorf("unbalanced parenthes? %s", cmdline)
155 return cmdline, "", fmt.Errorf("cannot find removal of .d file: %s", cmdline)
167 cmdline += fmt.Sprintf(" && cp %s %s.tmp", depfile, depfile)
327 cmd = fmt.Sprintf("%s/gomacc %s", n.GomaDir, rcmd)
361 ruleName := fmt.Sprintf("rule%d", n.ruleID)
367 fmt.Fprintf(n.f, "build %s: %s", escapeBuildTarget(output), rule)
369 fmt.Fprintf(n.f, " %s", inputs)
372 fmt.Fprintf(n.f, " || %s", orderOnlys)
515 fmt.Fprintf(n.f, "\n# rule for %q\n", node.Output)
516 fmt.Fprintf(n.f, "rule %s\n", ruleName)
522 fmt.Fprintf(n.f, " description = %s\n", desc)
528 fmt.Fprintf(n.f, " depfile = %s\n", depfile)
529 fmt.Fprintf(n.f, " deps = gcc\n")
539 fmt.Fprintf(n.f, " rspfile = $out.rsp\n")
541 fmt.Fprintf(n.f, " rspfile_content = %s\n", cmdline)
542 fmt.Fprintf(n.f, " command = %s $out.rsp\n", n.ctx.shell)
546 fmt.Fprintf(n.f, " command = %s -c \"%s\"\n", n.ctx.shell, cmdline)
551 fmt.Fprintf(n.f, " pool = local_pool\n")
553 fmt.Fprintf(n.f, "\n")
581 fmt.Fprintf(n.f, `
587 fmt.Fprintf(n.f, "build %s: regen_ninja %s", n.ninjaName(), mkfiles)
591 fmt.Fprintf(n.f, " %s", n.envlistName())
593 fmt.Fprintf(n.f, "\n\n")
598 return fmt.Sprintf("ninja%s.sh", n.Suffix)
602 return fmt.Sprintf("build%s.ninja", n.Suffix)
606 return fmt.Sprintf(".kati_env%s", n.Suffix)
625 fmt.Fprintf(f, "%q=%q\n", k, v)
642 fmt.Fprintf(f, "#!/bin/bash\n")
643 fmt.Fprintf(f, "# Generated by kati %s\n", gitVersion)
644 fmt.Fprintln(f)
645 fmt.Fprintln(f, `cd $(dirname "$0")`)
647 fmt.Fprintf(f, "if [ -f %s ]; then\n export $(cat %s)\nfi\n", n.envlistName(), n.envlistName())
661 fmt.Fprintf(f, "export %q=%q\n", name, v)
663 fmt.Fprintf(f, "unset %q\n", name)
667 fmt.Fprintf(f, `exec ninja -f %s "$@"`+"\n", n.ninjaName())
669 fmt.Fprintf(f, `exec ninja -f %s -j500 "$@"`+"\n", n.ninjaName())
688 fmt.Fprintf(n.f, "# Generated by kati %s\n", gitVersion)
689 fmt.Fprintf(n.f, "\n")
692 fmt.Fprintln(n.f, "# Environment variables used:")
703 fmt.Fprintf(n.f, "# %q=%q\n", name, v)
705 fmt.Fprintf(n.f, "\n")
709 fmt.Fprintf(n.f, "pool local_pool\n")
710 fmt.Fprintf(n.f, " depth = %d\n\n", runtime.NumCPU())
739 fmt.Fprintln(n.f)
743 fmt.Fprintln(n.f)
750 fmt.Fprintf(n.f, "\ndefault %s\n", escapeNinja(defaultTarget))