Commit cfc17fe
committed
rust: bindgen: ignore RISC-V extensions for GCC builds
Clang does not recognize some of the new `-march` arguments
GCC accepts, and which the kernel uses since commit 6df2a01
("riscv: fix build with binutils 2.38"), thus `bindgen` fails
with a message like:
error: invalid arch name 'rv64imac_zicsr_zifencei_zihintpause',
unsupported standard user-level extension 'zicsr', err: true
The temporary solution is to ignore it -- yet another hack on top
of the existing ones for GCC builds.
This is needed to update the CI to the new Ubuntu 22.04 base images
which come with a newer GCC.
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>1 parent fcad53c commit cfc17fe
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
281 | 286 | | |
282 | 287 | | |
283 | 288 | | |
| |||
291 | 296 | | |
292 | 297 | | |
293 | 298 | | |
294 | | - | |
| 299 | + | |
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| |||
0 commit comments