gllvm/utils.go

16 lines
319 B
Go
Raw Normal View History

2017-06-26 21:42:47 +02:00
package main
import (
"os"
"os/exec"
2017-06-26 21:42:47 +02:00
)
// Executes a command then returns true if there was an error
func execCmd(cmdExecName string, args []string, workingDir string) bool {
cmd := exec.Command(cmdExecName, args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Dir = workingDir
2017-06-29 23:19:12 +02:00
return cmd.Run() != nil
2017-06-26 21:42:47 +02:00
}