File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ fn main() {
41
41
return ;
42
42
}
43
43
44
+ if target. contains ( "android" ) {
45
+ println ! ( "cargo:rustc-link-lib=gcc" ) ;
46
+ } else if !target. contains ( "windows" ) && !target. contains ( "musl" ) {
47
+ println ! ( "cargo:rustc-link-lib=pthread" ) ;
48
+ }
49
+
44
50
if let Some ( jemalloc) = env:: var_os ( "JEMALLOC_OVERRIDE" ) {
45
51
let jemalloc = PathBuf :: from ( jemalloc) ;
46
52
println ! ( "cargo:rustc-link-search=native={}" ,
@@ -66,11 +72,6 @@ fn main() {
66
72
println ! ( "cargo:rustc-link-lib=static=jemalloc_pic" ) ;
67
73
}
68
74
println ! ( "cargo:rustc-link-search=native={}/lib" , build_dir. display( ) ) ;
69
- if target. contains ( "android" ) {
70
- println ! ( "cargo:rustc-link-lib=gcc" ) ;
71
- } else if !target. contains ( "windows" ) && !target. contains ( "musl" ) {
72
- println ! ( "cargo:rustc-link-lib=pthread" ) ;
73
- }
74
75
let src_dir = env:: current_dir ( ) . unwrap ( ) . join ( "../jemalloc" ) ;
75
76
rerun_if_changed_anything_in_dir ( & src_dir) ;
76
77
let timestamp = build_dir. join ( "rustbuild.timestamp" ) ;
You can’t perform that action at this time.
0 commit comments