diff options
Diffstat (limited to 'src/librustc/middle/weak_lang_items.rs')
| -rw-r--r-- | src/librustc/middle/weak_lang_items.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustc/middle/weak_lang_items.rs b/src/librustc/middle/weak_lang_items.rs index 72fda9a7ae0..934f7c0688c 100644 --- a/src/librustc/middle/weak_lang_items.rs +++ b/src/librustc/middle/weak_lang_items.rs @@ -45,6 +45,10 @@ pub fn check_crate(krate: &ast::Crate, if items.eh_personality().is_none() { items.missing.push(lang_items::EhPersonalityLangItem); } + if sess.target.target.options.custom_unwind_resume & + items.eh_unwind_resume().is_none() { + items.missing.push(lang_items::EhUnwindResumeLangItem); + } { let mut cx = Context { sess: sess, items: items }; @@ -122,4 +126,5 @@ weak_lang_items! { panic_fmt, PanicFmtLangItem, rust_begin_unwind; stack_exhausted, StackExhaustedLangItem, rust_stack_exhausted; eh_personality, EhPersonalityLangItem, rust_eh_personality; + eh_unwind_resume, EhUnwindResumeLangItem, rust_eh_unwind_resume; } |
