Skip to content

Commit

Permalink
chore(android): no longer needs to search the .cargo folder for links (
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Sep 2, 2024
1 parent 553a560 commit ce80447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changes/android-rustflags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cargo-mobile2": patch
---

The Rust flags for Android builds no longer need to search the .cargo folder for libraries.
4 changes: 0 additions & 4 deletions src/android/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit ce80447

Please sign in to comment.