File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2059,6 +2059,7 @@ config RUST
20592059 depends on HAS_RUST
20602060 depends on !COMPILE_TEST
20612061 depends on !MODVERSIONS
2062+ depends on !GCC_PLUGIN_RANDSTRUCT
20622063 default n
20632064 help
20642065 Enables Rust support in the kernel.
Original file line number Diff line number Diff line change 188188# bindgen relies on libclang to parse C. Ideally, bindgen would support a GCC
189189# plugin backend and/or the Clang driver would be perfectly compatible with GCC.
190190#
191- # For the moment, here we are tweaking the flags on the fly. Some config
192- # options may not work (e.g. `GCC_PLUGIN_RANDSTRUCT` if we end up using one
193- # of those structs).
191+ # For the moment, here we are tweaking the flags on the fly. This is a hack,
192+ # and some kernel configurations may not work (e.g. `GCC_PLUGIN_RANDSTRUCT`
193+ # if we end up using one of those structs).
194194bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
195195 -mskip-rax-setup -mgeneral-regs-only -msign-return-address=% \
196196 -mindirect-branch=thunk-extern -mindirect-branch-register -mrecord-mcount \
You can’t perform that action at this time.
0 commit comments