gllvm/utils.go

20 lines
358 B
Go
Raw Normal View History

2017-06-26 12:42:47 -07:00
package main
import(
"os"
"os/exec"
2017-06-26 12:42:47 -07: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
if cmd.Run() == nil {
return false
} else {
return true
}
2017-06-26 12:42:47 -07:00
}