Closed masatake closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
94d7724
) 85.36% compared to head (28d7248
) 85.36%. Report is 4 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
doesn't consider adding a configure option like --enable-lto ? We could enable LTO by default in release mode. We also allow user to disable it.
Why not enable LTO when cross compiling?
@leleliu008 Thank you. I added --enable-lto/--disable-lto.
Why not enable LTO when cross compiling?
I don't know whether my change works well with cross-compiling. Do you think just removing it?
AS_IF([test "x$cross_compiling" != "xyes" -a "x$enable_lto" != "xno"],[
is enough?
AC_CHECK_PROGS([LTO_AR], [gcc-ar ar]
this may be too simple to make my change work well with cross-compiling.
LTO is nothing to do with whether cross compiling or not. I guess it would work if you just removing the cross compiling checking condition, I am on a journey, and didn't bring my laptop, I can't confirm it right now.
LTO is nothing to do with whether cross compiling or not. I guess it would work if you just removing the cross compiling checking condition, I am on a journey, and didn't bring my laptop, I can't confirm it right now.
O.K. I will merge this pull request that disables LTO when cross-compiling. You can make a pull request to enable LTO + cross-compiling after merging this.
Close #2885.