Closed Lunarequest closed 3 years ago
Thanks! I will merge this pull request. I will also add an if (LINUX)
condition at the beginning of it to make sure it is only run on linux. MacOS and FreeBSD use clang and if this app gets ported over to them there would be issues.
since cmake 3.9 there has been an option to build with link time optimizations(lto) on compilers that support this feature(gcc,clang etc). LTO produces smaller, faster and more debugging friendly binaries. Ubuntu 21.04 enables LTO by default and arch will be implementing this soon.
note: this may cause issues when using clang as a compiler. https://bugreports.qt.io/browse/QTBUG-61710