xtool: llvm InstallNameTool

This commit is contained in:
xushiwei
2024-07-15 14:55:00 +08:00
parent 68203be004
commit 8657fbd810
2 changed files with 62 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import (
"strings"
"github.com/goplus/llgo/xtool/clang"
"github.com/goplus/llgo/xtool/llvm/install_name_tool"
"github.com/goplus/llgo/xtool/llvm/llvmlink"
"github.com/goplus/llgo/xtool/nm"
)
@@ -87,4 +88,9 @@ func (e *Env) Nm() *nm.Cmd {
return nm.New(bin)
}
func (e *Env) InstallNameTool() *install_name_tool.Cmd {
bin := filepath.Join(e.BinDir(), "llvm-install-name-tool")
return install_name_tool.New(bin)
}
// -----------------------------------------------------------------------------