try fix cross compile for 32-bit arm

This commit is contained in:
sijie.sun
2025-01-25 09:18:10 +08:00
parent 1f3af9d332
commit b82957784f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -25,5 +25,5 @@ tracing-subscriber = "0.3.19"
rand = "0.8.5"
[build-dependencies]
bindgen = { version="0.71.1", default-features=true}
bindgen = { version="0.71.1", default-features=false, features=["runtime", "which-rustfmt"]}
cc = "1.2.10"
+1
View File
@@ -22,6 +22,7 @@ fn main() {
.header("wrapper.h")
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.allowlist_function("ikcp_.*")
.use_core()
.generate()
.expect("Unable to generate bindings");