Closed scribam closed 3 years ago
Why make the user pass -DBUILD_LTO=ON
to CMake when they can just do -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
instead and avoid the need for extra logic in the CMake file?
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
does not check if the compiler supports LTO
Easier for projects which include libchdr to choose if they want to use lto or not.