Allow not emitting uwtable on Android

This commit is contained in:
hyd-dev 2021-03-23 02:38:30 +08:00
parent 2b8fbe6b0b
commit f900ee331d
No known key found for this signature in database
GPG key ID: 74FA7FD5B8DA14B8
5 changed files with 34 additions and 2 deletions

View 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() {}

View 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() {}