Commit 07e1f83
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 c25685b commit 07e1f83
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
1930 | 1935 | | |
1931 | 1936 | | |
1932 | 1937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
155 | 167 | | |
156 | 168 | | |
157 | 169 | | |
158 | 170 | | |
| 171 | + | |
159 | 172 | | |
160 | 173 | | |
161 | 174 | | |
| |||
0 commit comments