Commit 8c75c34
HACK: rust: x86: Set data-layout based on rustc's LLVM version
LLVM changed the data layout in x86 between 17 and 18 but Rust 1.77.0
and later checks for matching data layouts.
Parse the used LLVM version from `rustc -v --version` and generate a
matching target.json based on that.
We might need to keep this even with rust 1.78 depending ron the rust
package in Fedora 39.
Link: https://lore.kernel.org/lkml/20240401212303.537355-4-ojeda@kernel.org/
Signed-off-by: Janne Grunau <j@jannau.net>1 parent 653f1f7 commit 8c75c34
2 files changed
Lines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
1925 | 1930 | | |
1926 | 1931 | | |
1927 | 1932 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
159 | 178 | | |
160 | 179 | | |
161 | 180 | | |
| |||
0 commit comments