Skip to content

Commit 6bf1e80

Browse files
authored
rpmalloc-sys: Update rpmalloc submodule to latest upstream branch (#24)
This submodule was originally pointing to a commit somewhere between the 1.4.3 and 1.4.4 release (at the time this Rust wrapper was last committed to). Note that the upstream `main` branch is slightly ahead of the latest 1.4.5 release, because it also includes a just-merged fix for using Android API level 29+ compiled with LLVM 17+, which Rust apps would otherwise fail to load at runtime. The 1.4.5 release already contains a fix for ARM64 Windows, which is equally of interest to us. Finally, also add a `rerun-if-changed` on the `rpmalloc.c` file, so that **local** submodule changes and experimentations actually cause the crate to be recompiled. `cc-rs` only emits these for the environment variables, but not for `.file()` arguments.
1 parent ffd0ef7 commit 6bf1e80

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

rpmalloc-sys/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ fn main() {
1111
}
1212

1313
let mut build = cc::Build::new();
14-
let mut build = build.file(path.join("rpmalloc.c")).opt_level(2);
14+
let c_file = path.join("rpmalloc.c");
15+
println!("cargo:rerun-if-changed={}", c_file.display());
16+
let mut build = build.file(c_file).opt_level(2);
1517
// add defines for enabled features
1618

1719
#[rustfmt::skip]

0 commit comments

Comments
 (0)