about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-09-01 18:51:23 +0200
committerRalf Jung <post@ralfj.de>2024-09-03 09:35:15 +0200
commit5c0dfc61822c5844aaa153c9c772633a583ca2a7 (patch)
tree619723d447e11454f22c4500c2ff1684eda355d9
parent1a1cc050d8efc906ede39f444936ade1fdc9c6cb (diff)
downloadrust-5c0dfc61822c5844aaa153c9c772633a583ca2a7.tar.gz
rust-5c0dfc61822c5844aaa153c9c772633a583ca2a7.zip
update comment regarding TargetOptions.features
-rw-r--r--compiler/rustc_target/src/spec/mod.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
index 37665018219..1cbe5869118 100644
--- a/compiler/rustc_target/src/spec/mod.rs
+++ b/compiler/rustc_target/src/spec/mod.rs
@@ -2097,9 +2097,10 @@ pub struct TargetOptions {
     /// Default CPU to pass to LLVM. Corresponds to `llc -mcpu=$cpu`. Defaults
     /// to "generic".
     pub cpu: StaticCow<str>,
-    /// Default target features to pass to LLVM. These features will *always* be
-    /// passed, and cannot be disabled even via `-C`. Corresponds to `llc
-    /// -mattr=$features`.
+    /// Default target features to pass to LLVM. These features overwrite
+    /// `-Ctarget-cpu` but can be overwritten with `-Ctarget-features`.
+    /// Corresponds to `llc -mattr=$features`.
+    /// Note that these are LLVM feature names, not Rust feature names!
     pub features: StaticCow<str>,
     /// Direct or use GOT indirect to reference external data symbols
     pub direct_access_external_data: Option<bool>,