Skip to content

Commit 2465669

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

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -2097,9 +2097,9 @@ 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`.
21032103
pub features: StaticCow<str>,
21042104
/// Direct or use GOT indirect to reference external data symbols
21052105
pub direct_access_external_data: Option<bool>,

0 commit comments

Comments
 (0)