Add comment explanining unstable_target_features
This commit is contained in:
parent
aaf1b1bc93
commit
5ed556e84a
1 changed files with 1 additions and 0 deletions
|
@ -275,6 +275,7 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
|
|||
let mut e_flags: u32 = 0x0;
|
||||
|
||||
// Check if compressed is enabled
|
||||
// `unstable_target_features` is used here because "c" is gated behind riscv_target_feature.
|
||||
if sess.unstable_target_features.contains(&sym::c) {
|
||||
e_flags |= elf::EF_RISCV_RVC;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue