1
Fork 0

rustc_target: Remove some redundant target properties

This commit is contained in:
Vadim Petrochenkov 2022-06-18 01:01:19 +03:00
parent 0cb9899e78
commit 37fd2941a1
9 changed files with 11 additions and 20 deletions

View file

@ -17,7 +17,7 @@ pub fn check_crate<'tcx>(tcx: TyCtxt<'tcx>, items: &mut lang_items::LanguageItem
if items.eh_personality().is_none() {
items.missing.push(LangItem::EhPersonality);
}
if tcx.sess.target.is_like_emscripten && items.eh_catch_typeinfo().is_none() {
if tcx.sess.target.os == "emscripten" && items.eh_catch_typeinfo().is_none() {
items.missing.push(LangItem::EhCatchTypeinfo);
}