Skip to content

Commit 5ed556e

Browse files
committed
Add comment explanining unstable_target_features
1 parent aaf1b1b commit 5ed556e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_codegen_ssa/src/back/metadata.rs

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
275275
let mut e_flags: u32 = 0x0;
276276

277277
// Check if compressed is enabled
278+
// `unstable_target_features` is used here because "c" is gated behind riscv_target_feature.
278279
if sess.unstable_target_features.contains(&sym::c) {
279280
e_flags |= elf::EF_RISCV_RVC;
280281
}

0 commit comments

Comments
 (0)