diff --git a/_cmptest/osexec/exec.go b/_cmptest/osexec/exec.go index 31eb2ec1..0ec5c09e 100644 --- a/_cmptest/osexec/exec.go +++ b/_cmptest/osexec/exec.go @@ -5,6 +5,8 @@ import ( "os" "os/exec" "runtime" + + "github.com/goplus/llgo/xtool/env/llvm" ) func main() { @@ -17,6 +19,6 @@ func main() { cmd.Stderr = os.Stderr cmd.Run() - output, _ := exec.Command(ls).Output() - fmt.Print(string(output)) + dir := llvm.New("").BinDir() + fmt.Println(dir) }