Skip to content

Commit 5c0dfc6

Browse files
committed
update comment regarding TargetOptions.features
1 parent 1a1cc05 commit 5c0dfc6

File tree

1 file changed

+4
-3
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+4
-3
lines changed

Diff for: compiler/rustc_target/src/spec/mod.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -2097,9 +2097,10 @@ pub struct TargetOptions {
20972097
/// Default CPU to pass to LLVM. Corresponds to `llc -mcpu=$cpu`. Defaults
20982098
/// to "generic".
20992099
pub cpu: StaticCow<str>,
2100-
/// Default target features to pass to LLVM. These features will *always* be
2101-
/// passed, and cannot be disabled even via `-C`. Corresponds to `llc
2102-
/// -mattr=$features`.
2100+
/// Default target features to pass to LLVM. These features overwrite
2101+
/// `-Ctarget-cpu` but can be overwritten with `-Ctarget-features`.
2102+
/// Corresponds to `llc -mattr=$features`.
2103+
/// Note that these are LLVM feature names, not Rust feature names!
21032104
pub features: StaticCow<str>,
21042105
/// Direct or use GOT indirect to reference external data symbols
21052106
pub direct_access_external_data: Option<bool>,

0 commit comments

Comments
 (0)