Skip to content

Commit

Permalink
Switch to NDK 26
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Oct 28, 2023
1 parent 351f702 commit b539c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build_rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ fn main() -> Result<()> {
return Ok(());
}
let ndk_path = Utf8PathBuf::from(env::var("ANDROID_NDK_HOME").unwrap_or_default());
if !ndk_path.file_name().unwrap_or_default().starts_with("25.") {
panic!("Expected ANDROID_NDK_HOME to point to a 25.x NDK. Future versions may work, but are untested.");
if !ndk_path.file_name().unwrap_or_default().starts_with("26.") {
panic!("Expected ANDROID_NDK_HOME to point to a 26.x NDK. Future versions may work, but are untested.");
}

build_web_artifacts()?;
Expand Down
2 changes: 1 addition & 1 deletion rslib-bridge/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() -> Result<()> {
} else {
"windows-x86_64"
};
let lib_dir = format!("/toolchains/llvm/prebuilt/{platform}/lib64/clang/14.0.7/lib/linux/");
let lib_dir = format!("/toolchains/llvm/prebuilt/{platform}/lib/clang/17/lib/linux/");
println!("cargo:rustc-link-search={android_ndk_home}/{lib_dir}");
println!("cargo:rustc-link-lib=static=clang_rt.builtins-x86_64-android");
}
Expand Down

0 comments on commit b539c73

Please sign in to comment.