mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-01-12 00:02:38 +08:00
13 lines
384 B
Rust
13 lines
384 B
Rust
fn main() {
|
|
let target = std::env::var("TARGET").unwrap();
|
|
if target == "aarch64-linux-android" {
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
println!("cargo:rustc-link-arg=-Wl,-z,max-page-size=65536");
|
|
|
|
cc::Build::new()
|
|
.file("src/log.c")
|
|
.compile("libc_code.a");
|
|
println!("cargo:rerun-if-changed=src/log.c");
|
|
}
|
|
}
|