mirror of
https://github.com/EasyTier/kcp-sys.git
synced 2025-05-19 10:31:09 +00:00
try fix cross compile for 32-bit arm
This commit is contained in:
+1
-1
@@ -25,5 +25,5 @@ tracing-subscriber = "0.3.19"
|
|||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
|
|
||||||
[build-dependencies]
|
[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"
|
cc = "1.2.10"
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ fn main() {
|
|||||||
.header("wrapper.h")
|
.header("wrapper.h")
|
||||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
|
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
|
||||||
.allowlist_function("ikcp_.*")
|
.allowlist_function("ikcp_.*")
|
||||||
|
.use_core()
|
||||||
.generate()
|
.generate()
|
||||||
.expect("Unable to generate bindings");
|
.expect("Unable to generate bindings");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user