File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ fn main() {
20
20
let target = env:: var ( "TARGET" ) . expect ( "TARGET was not set" ) ;
21
21
let host = env:: var ( "HOST" ) . expect ( "HOST was not set" ) ;
22
22
if cfg ! ( feature = "backtrace" ) &&
23
- !target. contains ( "msvc " ) &&
23
+ !target. contains ( "cloudabi " ) &&
24
24
!target. contains ( "emscripten" ) &&
25
25
!target. contains ( "fuchsia" ) &&
26
+ !target. contains ( "msvc" ) &&
26
27
!target. contains ( "wasm32" )
27
28
{
28
29
let _ = build_libbacktrace ( & host, & target) ;
@@ -74,6 +75,12 @@ fn main() {
74
75
println ! ( "cargo:rustc-link-lib=zircon" ) ;
75
76
println ! ( "cargo:rustc-link-lib=fdio" ) ;
76
77
println ! ( "cargo:rustc-link-lib=launchpad" ) ; // for std::process
78
+ } else if target. contains ( "cloudabi" ) {
79
+ if cfg ! ( feature = "backtrace" ) {
80
+ println ! ( "cargo:rustc-link-lib=unwind" ) ;
81
+ }
82
+ println ! ( "cargo:rustc-link-lib=c" ) ;
83
+ println ! ( "cargo:rustc-link-lib=compiler_rt" ) ;
77
84
}
78
85
}
79
86
Original file line number Diff line number Diff line change @@ -43,5 +43,7 @@ fn main() {
43
43
println ! ( "cargo:rustc-link-lib=gcc_s" ) ;
44
44
} else if target. contains ( "redox" ) {
45
45
println ! ( "cargo:rustc-link-lib=gcc" ) ;
46
+ } else if target. contains ( "cloudabi" ) {
47
+ println ! ( "cargo:rustc-link-lib=unwind" ) ;
46
48
}
47
49
}
You can’t perform that action at this time.
0 commit comments