From ce804479427435cba770ffa941e27ce32b271533 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Mon, 2 Sep 2024 10:22:16 -0300 Subject: [PATCH] chore(android): no longer needs to search the .cargo folder for links (#380) ref #125 --- .changes/android-rustflags.md | 5 +++++ src/android/target.rs | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .changes/android-rustflags.md diff --git a/.changes/android-rustflags.md b/.changes/android-rustflags.md new file mode 100644 index 00000000..13a882d7 --- /dev/null +++ b/.changes/android-rustflags.md @@ -0,0 +1,5 @@ +--- +"cargo-mobile2": patch +--- + +The Rust flags for Android builds no longer need to search the .cargo folder for libraries. diff --git a/src/android/target.rs b/src/android/target.rs index c277c547..f9ddc056 100644 --- a/src/android/target.rs +++ b/src/android/target.rs @@ -213,10 +213,6 @@ impl<'a> Target<'a> { linker: Some(linker), rustflags: vec![ "-L".to_owned(), - format!( - "\"{}\"", - dunce::simplified(&config.app().prefix_path(".cargo")).display() - ), "-Clink-arg=-landroid".to_owned(), "-Clink-arg=-llog".to_owned(), "-Clink-arg=-lOpenSLES".to_owned(),