Merge remote-tracking branch 'upstream/main' into release/esp-clang
This commit is contained in:
3
xtool/env/llvm/llvm.go
vendored
3
xtool/env/llvm/llvm.go
vendored
@@ -38,6 +38,9 @@ const (
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// defaultLLVMConfigBin returns the default path to the llvm-config binary. It
|
||||||
|
// checks the LLVM_CONFIG environment variable first, then searches in PATH. If
|
||||||
|
// not found, it returns [ldLLVMConfigBin] as a last resort.
|
||||||
func defaultLLVMConfigBin() string {
|
func defaultLLVMConfigBin() string {
|
||||||
bin := os.Getenv("LLVM_CONFIG")
|
bin := os.Getenv("LLVM_CONFIG")
|
||||||
if bin != "" {
|
if bin != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user