File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ profiler = ["profiler_builtins"]
61
61
compiler-builtins-c = [" alloc/compiler-builtins-c" ]
62
62
compiler-builtins-mem = [" alloc/compiler-builtins-mem" ]
63
63
llvm-libunwind = [" unwind/llvm-libunwind" ]
64
+ system-llvm-libunwind = [" unwind/system-llvm-libunwind" ]
64
65
65
66
# Make panics and failed asserts immediately abort without formatting any message
66
67
panic_immediate_abort = [" core/panic_immediate_abort" ]
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ backtrace = ["std/backtrace"]
27
27
compiler-builtins-c = [" std/compiler-builtins-c" ]
28
28
compiler-builtins-mem = [" std/compiler-builtins-mem" ]
29
29
llvm-libunwind = [" std/llvm-libunwind" ]
30
+ system-llvm-libunwind = [" std/system-llvm-libunwind" ]
30
31
panic-unwind = [" std/panic_unwind" ]
31
32
panic_immediate_abort = [" std/panic_immediate_abort" ]
32
33
profiler = [" std/profiler" ]
Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ cc = { version = "1.0.1" }
23
23
24
24
[features ]
25
25
llvm-libunwind = []
26
+ system-llvm-libunwind = []
Original file line number Diff line number Diff line change @@ -45,10 +45,24 @@ extern "C" {}
45
45
// When building with crt-static, we get `gcc_eh` from the `libc` crate, since
46
46
// glibc needs it, and needs it listed later on the linker command line. We
47
47
// don't want to duplicate it here.
48
- #[ cfg( all( target_os = "linux" , target_env = "gnu" , not( feature = "llvm-libunwind" ) ) ) ]
48
+ #[ cfg( all(
49
+ target_os = "linux" ,
50
+ target_env = "gnu" ,
51
+ not( feature = "llvm-libunwind" ) ,
52
+ not( feature = "system-llvm-libunwind" )
53
+ ) ) ]
49
54
#[ link( name = "gcc_s" , cfg( not( target_feature = "crt-static" ) ) ) ]
50
55
extern "C" { }
51
56
57
+ #[ cfg( all(
58
+ target_os = "linux" ,
59
+ target_env = "gnu" ,
60
+ not( feature = "llvm-libunwind" ) ,
61
+ feature = "system-llvm-libunwind"
62
+ ) ) ]
63
+ #[ link( name = "unwind" , cfg( not( target_feature = "crt-static" ) ) ) ]
64
+ extern "C" { }
65
+
52
66
#[ cfg( target_os = "redox" ) ]
53
67
#[ link( name = "gcc_eh" , kind = "static-nobundle" , cfg( target_feature = "crt-static" ) ) ]
54
68
#[ link( name = "gcc_s" , cfg( not( target_feature = "crt-static" ) ) ) ]
You can’t perform that action at this time.
0 commit comments