Skip to content

Commit

Permalink
Rollup merge of #109685 - est31:not_llvm_but_backend, r=jyn514
Browse files Browse the repository at this point in the history
Make doc comment a little bit more accurate

It queries not LLVM in particular but the codegen backend *in general*. While cranelift does not provide target features, other codegen backends do.

Found while looking for [this answer](#108680 (comment)).
  • Loading branch information
matthiaskrgr committed Mar 28, 2023
2 parents 90b6c71 + 7bbc8ef commit cad4893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_interface/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub type MakeBackendFn = fn() -> Box<dyn CodegenBackend>;
/// specific features (SSE, NEON etc.).
///
/// This is performed by checking whether a set of permitted features
/// is available on the target machine, by querying LLVM.
/// is available on the target machine, by querying the codegen backend.
pub fn add_configuration(
cfg: &mut CrateConfig,
sess: &mut Session,
Expand Down

0 comments on commit cad4893

Please sign in to comment.