We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
jemalloc-sys
1 parent fa4486d commit fd235deCopy full SHA for fd235de
jemalloc-sys/build.rs
@@ -318,6 +318,9 @@ fn main() {
318
.arg("-j")
319
.arg(num_jobs));
320
321
+ // Remove the build directory to avoid it wasting disk space in the target directory
322
+ fs::remove_dir_all(build_dir).unwrap();
323
+
324
println!("cargo:root={}", out_dir.display());
325
326
// Linkage directives to pull in jemalloc and its dependencies.
@@ -332,7 +335,7 @@ fn main() {
332
335
} else {
333
336
println!("cargo:rustc-link-lib=static=jemalloc_pic");
334
337
}
- println!("cargo:rustc-link-search=native={}/lib", build_dir.display());
338
+ println!("cargo:rustc-link-search=native={}/lib", out_dir.display());
339
if target.contains("android") {
340
println!("cargo:rustc-link-lib=gcc");
341
} else if !target.contains("windows") {
0 commit comments