Re: [PATCH] rust/wrapper.h: define memory_order enum

2024-10-15 Thread Junjie Mao
Paolo Bonzini writes: > On 10/15/24 14:07, Manos Pitsidianakis wrote: >> Add stub definition of memory_order enum in wrapper.h. >> Creating Rust bindings from C code is done by passing the wrapper.h >> header to `bindgen`. This fails when library dependencies that use >> compiler headers are en

Re: [PATCH] rust/wrapper.h: define memory_order enum

2024-10-15 Thread Paolo Bonzini
On 10/15/24 14:07, Manos Pitsidianakis wrote: Add stub definition of memory_order enum in wrapper.h. Creating Rust bindings from C code is done by passing the wrapper.h header to `bindgen`. This fails when library dependencies that use compiler headers are enabled, and the libclang that bindgen

[PATCH] rust/wrapper.h: define memory_order enum

2024-10-15 Thread Manos Pitsidianakis
Add stub definition of memory_order enum in wrapper.h. Creating Rust bindings from C code is done by passing the wrapper.h header to `bindgen`. This fails when library dependencies that use compiler headers are enabled, and the libclang that bindgen detects does not match the expected clang versio