mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
41455566ac
- On GCC 4.9+ although GCC supports LTO, it requires use of the non-default gcc-ar & gcc-ranlib. Whilst we can ensure Ceres is compiled with these, doing so with GCC 4.9 causes multiple definition linker errors of static ints inside Eigen when compiling the tests and examples when they are not also built with LTO. - On OS X (Xcode 6 & 7) after the latest update to gtest, if LTO is used when compiling the tests (& examples), two tests fail due to typeinfo::operator== (things are fine if only Ceres itself is compiled with LTO). - This patch disables LTO for all compilers. It should be revisited when the performance is more stable across our supported compilers. Change-Id: I17b52957faefbdeff0aa40846dc9b342db1b02e3