• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:toolchain

7 //    http://www.apache.org/licenses/LICENSE-2.0
37 // Version holds the build version information of an LLVM toolchain.
63 // Download downloads and verifies the LLVM toolchain for the current OS.
68 // DownloadForOS downloads and verifies the LLVM toolchain for the given OS.
112 …rl = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-x86_…
113 sig = relfile("10.0.0-ubuntu.sig")
116 …url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-x86…
117 sig = relfile("10.0.0-darwin.sig")
120 …url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win64.exe"
121 sig = relfile("10.0.0-win64.sig")
136 // Toolchain holds the paths and version information about an LLVM toolchain.
137 type Toolchain struct { struct
142 // Toolchains is a list of Toolchain
143 type Toolchains []Toolchain
145 // Find looks for a toolchain with the specific version.
146 func (l Toolchains) Find(v Version) *Toolchain {
155 // FindAtLeast looks for a toolchain with the given version, returning the highest found version.
156 func (l Toolchains) FindAtLeast(v Version) *Toolchain {
157 out := (*Toolchain)(nil)
170 toolchains := map[Version]Toolchain{}
177 if t := toolchain(path); t != nil {
181 if t := toolchain(filepath.Join(path, "bin")); t != nil {
189 if t := toolchain(filepath.Dir(path)); t != nil {
198 search(fmt.Sprintf("clang-%d", i))
201 out := make([]Toolchain, 0, len(toolchains))
211 func (t Toolchain) Clang() string { argument
216 func (t Toolchain) ClangXX() string { argument
220 // Cov returns the path to the llvm-cov executable.
221 func (t Toolchain) Cov() string { argument
222 return filepath.Join(t.BinDir, "llvm-cov"+exeExt())
225 // Profdata returns the path to the llvm-profdata executable.
226 func (t Toolchain) Profdata() string { argument
227 return filepath.Join(t.BinDir, "llvm-profdata"+exeExt())
230 func toolchain(dir string) *Toolchain { func
231 t := Toolchain{BinDir: dir}
238 func (t *Toolchain) resolve() bool { argument
239 if !util.IsFile(t.Profdata()) { // llvm-profdata doesn't have --version flag
256 var versionRE = regexp.MustCompile(`(?:clang|LLVM) version ([0-9]+)\.([0-9]+)\.([0-9]+)`)
259 out, err := exec.Command(tool, "--version").Output()