Re: [RFC PATCH 02/11] rust: build: move rustc_args.py invocation to individual crates

2024-11-11 Thread Junjie Mao
Paolo Bonzini writes: > Only qemu-api needs access to the symbols in config-host.h. This may no longer be the case when more complex, build-time configurable devices are added in the future. Moving rustc_args.py calls to each crate is still helpful because of the changes in patches 3-6 in thi

[RFC PATCH 02/11] rust: build: move rustc_args.py invocation to individual crates

2024-11-08 Thread Paolo Bonzini
Only qemu-api needs access to the symbols in config-host.h. Remove the temptation to use them by limiting the --cfg arguments to the qemu-api crate. Signed-off-by: Paolo Bonzini --- meson.build | 54 +-- rust/qemu-api/meson.build | 4 +++ 2 fil