Skip to content

Commit

Permalink
Use thin LTO
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye authored and Mygod committed Mar 1, 2020
1 parent 2e2d9d4 commit deb5de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cargo {
noDefaultBut "sodium", "android", "rc4", "aes-cfb", "aes-ctr", "camellia-cfb", "openssl-vendored"
}
exec { spec, toolchain ->
spec.environment("RUSTFLAGS", "-C link-arg=-o -C link-arg=target/${toolchain.target}/$profile/lib${libname}.so")
spec.environment("RUSTFLAGS", "-C lto=thin -C link-arg=-o -C link-arg=target/${toolchain.target}/$profile/lib${libname}.so")
}
}

Expand Down

0 comments on commit deb5de4

Please sign in to comment.