xtool: utilize llvm-config to find LLVM executables
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user