osexec: llvm bindir

This commit is contained in:
xushiwei
2024-07-29 00:17:53 +08:00
parent 708de50887
commit 8a13fc7cd9

View File

@@ -5,6 +5,8 @@ import (
"os" "os"
"os/exec" "os/exec"
"runtime" "runtime"
"github.com/goplus/llgo/xtool/env/llvm"
) )
func main() { func main() {
@@ -17,6 +19,6 @@ func main() {
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
cmd.Run() cmd.Run()
output, _ := exec.Command(ls).Output() dir := llvm.New("").BinDir()
fmt.Print(string(output)) fmt.Println(dir)
} }