Repository navigation
Commit 684abd0
committed
build-pgo.sh: check that llvm-profdata matches the LLVM of rustc
The profile format changes between LLVM major versions, and an llvm-profdata
from another one either fails to merge what the instrumented binary wrote,
or writes a profile rustc cannot use. Either way that only showed up after
the instrumented build and the training.
Compare the major LLVM versions reported by `rustc -vV` and
`llvm-profdata --version` as soon as llvm-profdata is found, and stop with
the version to use if they differ. That matters mostly without rustup, when
llvm-profdata comes from the distribution through --llvm-profdata.1 parent 4115917 commit 684abd0
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
99 | 115 | | |
100 | 116 | | |
101 | 117 | | |
| |||
0 commit comments