rust: fix cfgs of proc-macro2 for 1.63.0

Replay the configuration that would be computed by build.rs when compiling
on a 1.63.0 compiler.

Reviewed-by: Junjie Mao <junjie.mao@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2024-08-08 11:39:15 +02:00
parent 64644bc4ea
commit 646b5378e0

View File

@ -15,7 +15,9 @@ _proc_macro2_rs = static_library(
rust_abi: 'rust',
rust_args: [
'--cfg', 'feature="proc-macro"',
'--cfg', 'span_locations',
'--cfg', 'no_literal_byte_character',
'--cfg', 'no_literal_c_string',
'--cfg', 'no_source_text',
'--cfg', 'wrap_proc_macro',
],
dependencies: [