From: Paolo Bonzini Date: Thu, 8 Aug 2024 09:39:15 +0000 (+0200) Subject: rust: fix cfgs of proc-macro2 for 1.63.0 X-Git-Tag: v9.2.0-rc0~9^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=646b5378e0ff4b369ea7cc050689c1c65ed041a7;p=thirdparty%2Fqemu.git 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 Signed-off-by: Paolo Bonzini --- diff --git a/subprojects/packagefiles/proc-macro2-1-rs/meson.build b/subprojects/packagefiles/proc-macro2-1-rs/meson.build index 818ec59336b..8e601b50ccc 100644 --- a/subprojects/packagefiles/proc-macro2-1-rs/meson.build +++ b/subprojects/packagefiles/proc-macro2-1-rs/meson.build @@ -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: [