xtool/llvm/install_name_tool: Exec

This commit is contained in:
xushiwei
2024-07-16 07:32:18 +08:00
parent 93bac6f26f
commit 96e418e63b
2 changed files with 15 additions and 8 deletions

View File

@@ -40,6 +40,7 @@ func New(app string) *Cmd {
return &Cmd{app, os.Stdout, os.Stderr}
}
// Exec executes a clang command.
func (p *Cmd) Exec(args ...string) error {
cmd := exec.Command(p.app, args...)
cmd.Stdout = p.Stdout