We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c9d42c commit 74e2ac4Copy full SHA for 74e2ac4
compiler/rustc_target/src/spec/mod.rs
@@ -2213,6 +2213,10 @@ pub struct TargetOptions {
2213
/// `-Ctarget-cpu` but can be overwritten with `-Ctarget-features`.
2214
/// Corresponds to `llc -mattr=$features`.
2215
/// Note that these are LLVM feature names, not Rust feature names!
2216
+ ///
2217
+ /// Generally it is a bad idea to use negative target features because they often interact very
2218
+ /// poorly with how `-Ctarget-cpu` works. Instead, try to use a lower "base CPU" and enable the
2219
+ /// features you want to use.
2220
pub features: StaticCow<str>,
2221
/// Direct or use GOT indirect to reference external data symbols
2222
pub direct_access_external_data: Option<bool>,
0 commit comments