@@ -67,7 +67,7 @@ pub enum _Unwind_Context {}
67
67
68
68
pub type _Unwind_Exception_Cleanup_Fn = extern "C" fn ( unwind_code : _Unwind_Reason_Code ,
69
69
exception : * mut _Unwind_Exception ) ;
70
- #[ cfg_attr( feature = "llvm-libunwind" ,
70
+ #[ cfg_attr( all ( not ( bootstrap ) , feature = "llvm-libunwind" ) ,
71
71
link( name = "unwind" , kind = "static" ) ) ]
72
72
extern "C" {
73
73
#[ unwind( allowed) ]
@@ -93,7 +93,7 @@ if #[cfg(all(any(target_os = "ios", target_os = "netbsd", not(target_arch = "arm
93
93
}
94
94
pub use _Unwind_Action:: * ;
95
95
96
- #[ cfg_attr( feature = "llvm-libunwind" ,
96
+ #[ cfg_attr( all ( not ( bootstrap ) , feature = "llvm-libunwind" ) ,
97
97
link( name = "unwind" , kind = "static" ) ) ]
98
98
extern "C" {
99
99
pub fn _Unwind_GetGR( ctx: * mut _Unwind_Context, reg_index: c_int) -> _Unwind_Word;
@@ -148,7 +148,7 @@ if #[cfg(all(any(target_os = "ios", target_os = "netbsd", not(target_arch = "arm
148
148
pub const UNWIND_POINTER_REG : c_int = 12 ;
149
149
pub const UNWIND_IP_REG : c_int = 15 ;
150
150
151
- #[ cfg_attr( feature = "llvm-libunwind" ,
151
+ #[ cfg_attr( all ( not ( bootstrap ) , feature = "llvm-libunwind" ) ,
152
152
link( name = "unwind" , kind = "static" ) ) ]
153
153
extern "C" {
154
154
fn _Unwind_VRS_Get( ctx: * mut _Unwind_Context,
@@ -212,7 +212,7 @@ if #[cfg(all(any(target_os = "ios", target_os = "netbsd", not(target_arch = "arm
212
212
cfg_if:: cfg_if! {
213
213
if #[ cfg( not( all( target_os = "ios" , target_arch = "arm" ) ) ) ] {
214
214
// Not 32-bit iOS
215
- #[ cfg_attr( feature = "llvm-libunwind" ,
215
+ #[ cfg_attr( all ( not ( bootstrap ) , feature = "llvm-libunwind" ) ,
216
216
link( name = "unwind" , kind = "static" ) ) ]
217
217
extern "C" {
218
218
#[ unwind( allowed) ]
@@ -223,7 +223,7 @@ if #[cfg(not(all(target_os = "ios", target_arch = "arm")))] {
223
223
}
224
224
} else {
225
225
// 32-bit iOS uses SjLj and does not provide _Unwind_Backtrace()
226
- #[ cfg_attr( feature = "llvm-libunwind" ,
226
+ #[ cfg_attr( all ( not ( bootstrap ) , feature = "llvm-libunwind" ) ,
227
227
link( name = "unwind" , kind = "static" ) ) ]
228
228
extern "C" {
229
229
#[ unwind( allowed) ]
0 commit comments