On Sun, 6 Sep 2026 18:56:47 +0200, Miguel Ojeda wrote: > Now, if we are going to filter this out for Clang, should we just > filter it out for GCC too? i.e. outside the `ifdef`?
Yes, that makes it more future proof. For v2 I would filter it on the bindgen_c_flags_final line, after the ifdef, unless you prefer it before. (And to your question on patch 6: yes, the rustc flag comes in this patch.) > By the way, "generates no code" sounds a bit strange, since `bindgen` > generates source code... Ah, yes. How about this, here and in compiler_types.h (patch 3)? # Do not pass -fpatchable-function-entry to bindgen: its libclang may not # support the section argument (Clang >= 21), and parsing does not need it. - Jose
