xtool: utilize llvm-config to find LLVM executables

This commit is contained in:
Aofei Sheng
2024-06-25 18:16:46 +08:00
parent 57fa592a13
commit 43a6837e81
19 changed files with 381 additions and 34 deletions

View File

@@ -35,7 +35,7 @@ type Cmd struct {
// New creates a new llvm-link command.
func New(app string) *Cmd {
if app == "" {
app = os.Getenv("LLGO_LLVM_ROOT") + "/bin/llvm-link"
app = "llvm-link"
}
return &Cmd{app, os.Stdout, os.Stderr}
}