Allow not emitting uwtable on Android
This commit is contained in:
parent
2b8fbe6b0b
commit
f900ee331d
5 changed files with 34 additions and 2 deletions
15
src/test/codegen/default-requires-uwtable.rs
Normal file
15
src/test/codegen/default-requires-uwtable.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// revisions: WINDOWS ANDROID
|
||||
// needs-llvm-components: x86 arm
|
||||
// compile-flags: -C panic=abort
|
||||
// [WINDOWS] compile-flags: --target=x86_64-pc-windows-msvc
|
||||
// [ANDROID] compile-flags: --target=armv7-linux-androideabi
|
||||
|
||||
#![feature(no_core, lang_items)]
|
||||
#![crate_type = "lib"]
|
||||
#![no_core]
|
||||
|
||||
#[lang = "sized"]
|
||||
trait Sized {}
|
||||
|
||||
// CHECK: attributes #{{.*}} uwtable
|
||||
pub fn foo() {}
|
||||
7
src/test/codegen/force-no-unwind-tables.rs
Normal file
7
src/test/codegen/force-no-unwind-tables.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// compile-flags: -C no-prepopulate-passes -C panic=abort -C force-unwind-tables=n
|
||||
// ignore-windows
|
||||
|
||||
#![crate_type="lib"]
|
||||
|
||||
// CHECK-NOT: attributes #{{.*}} uwtable
|
||||
pub fn foo() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue