Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The default Clang configuration uses ThinLTO instead of the standard LTO. When published, benchmarks already showed this to be inferior for chess engines: http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html Benchmarking with current Clang 12 shows that the above result still holds and ThinLTO is a pessimization, see issue official-stockfish#3341. The commit that added ThinLTO did not contain any benchmarking. While ThinLTO may compile faster, that's not a worthwhile tradeoff for a chess engine. With ThinLTO disabled, Clang 12 will outperform GCC 9 and 10 for some architectures, e.g. Intel Haswell.
- Loading branch information