1 #[allow(unused_assignments, unused_mut, unused_variables)] 2 pub const STD: &str = { 3 let mut flags = ["-std=c++11", "/std:c++11"]; 4 5 #[cfg(feature = "c++14")] 6 (flags = ["-std=c++14", "/std:c++14"]); 7 8 #[cfg(feature = "c++17")] 9 (flags = ["-std=c++17", "/std:c++17"]); 10 11 #[cfg(feature = "c++20")] 12 (flags = ["-std=c++20", "/std:c++20"]); 13 14 let [mut flag, msvc_flag] = flags; 15 16 #[cfg(target_env = "msvc")] 17 (flag = msvc_flag); 18 19 flag 20 }; 21