Skip to content

Commit

Permalink
Speed up rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Apr 24, 2020
1 parent 67da4c8 commit 5ea3e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cargo {
"local-dns-relay"))
}
exec = { spec, toolchain ->
spec.environment("RUSTFLAGS", "-C link-arg=-o -C link-arg=target/${toolchain.target}/$profile/lib$libname.so")
spec.environment("RUST_ANDROID_GRADLE_CC_LINK_ARG", "-o,target/${toolchain.target}/$profile/lib$libname.so")
}
}

Expand Down

2 comments on commit 5ea3e35

@Mygod
Copy link
Contributor Author

@Mygod Mygod commented on 5ea3e35 Apr 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@madeye Somehow using RUSTFLAGS will prevent final step from being clean.

See also: mozilla/rust-android-gradle#31

@Mygod
Copy link
Contributor Author

@Mygod Mygod commented on 5ea3e35 May 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay it seems like the actual problem is that once the output file is redirected, deps/sslocal-hash will be missing and therefore rebuild is triggered every time.

Please sign in to comment.