Il mer 23 ott 2024, 17:15 Zhao Liu <zhao1....@intel.com> ha scritto: > > let expanded = quote! { > > #[allow(non_upper_case_globals)] > > #[used] > > - #[cfg_attr(target_os = "linux", link_section = ".ctors")] > > - #[cfg_attr(target_os = "macos", link_section = > "__DATA,__mod_init_func")] > > + #[cfg_attr( > > + not(any(target_vendor = "apple", target_os = "windows")), > > EMM, "apple" vendor contains macOS, iOS and other variations of iOS. > Do we need to consider other OSs besides macOS for now? >
Yes, UTM runs on iOS. And it seems that the Rust people don't like "target_vendor = 'apple'". > (https://github.com/rust-lang/rust/issues/100343). :-) > That would be an edition break, I think, so we can worry about it in 2028. :) Paolo > Otherwise, > > Reviewed-by: Zhao Liu <zhao1....@intel.com> > >