File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ fn main() {
42
42
return ;
43
43
}
44
44
45
+ if target. contains ( "android" ) {
46
+ println ! ( "cargo:rustc-link-lib=gcc" ) ;
47
+ } else if !target. contains ( "windows" ) && !target. contains ( "musl" ) {
48
+ println ! ( "cargo:rustc-link-lib=pthread" ) ;
49
+ }
50
+
45
51
if let Some ( jemalloc) = env:: var_os ( "JEMALLOC_OVERRIDE" ) {
46
52
let jemalloc = PathBuf :: from ( jemalloc) ;
47
53
println ! ( "cargo:rustc-link-search=native={}" ,
@@ -176,11 +182,6 @@ fn main() {
176
182
println ! ( "cargo:rustc-link-lib=static=jemalloc_pic" ) ;
177
183
}
178
184
println ! ( "cargo:rustc-link-search=native={}/lib" , build_dir. display( ) ) ;
179
- if target. contains ( "android" ) {
180
- println ! ( "cargo:rustc-link-lib=gcc" ) ;
181
- } else if !target. contains ( "windows" ) && !target. contains ( "musl" ) {
182
- println ! ( "cargo:rustc-link-lib=pthread" ) ;
183
- }
184
185
185
186
// The pthread_atfork symbols is used by jemalloc on android but the really
186
187
// old android we're building on doesn't have them defined, so just make
You can’t perform that action at this time.
0 commit comments