pub fn c_lto_flags(kind: Option<&str>, target: &str) -> Result<String, String>Expand description
The CMAKE_C_FLAGS for cross-language LTO: -flto for RUSTERON_C_LTO (full, the
default, or thin), and --target set to rustc’s target (cargo’s TARGET). Without
it clang tags the bitcode with its own default triple (x86_64-pc-linux-gnu on Debian
and Ubuntu), and lld warns on every C module linked into Rust’s x86_64-unknown-linux-gnu.
The cmake crate would pass --target itself, but skips its compiler flags once
CMAKE_C_FLAGS is defined.