On certain platforms, OpenCVCompilerOptions.cmake changes optimization flag -O3 to -O2.
This might have been important 5 years ago. s is still required?
It was originally supposed to be just for 32-bit MINGW, but that check is gone.
Specifically, it prevents -O3 when building OpenCV with emscripten, which may significantly reduce the optimizations. It's possible to just check for NOT EMSCRIPTEN but it may be worth reconsidering this whole silent change as it may not be relevant anymore.
On certain platforms,
OpenCVCompilerOptions.cmakechanges optimization flag-O3to-O2.This might have been important 5 years ago. s is still required?
It was originally supposed to be just for 32-bit MINGW, but that check is gone.
Specifically, it prevents -O3 when building OpenCV with emscripten, which may significantly reduce the optimizations. It's possible to just check for
NOT EMSCRIPTENbut it may be worth reconsidering this whole silent change as it may not be relevant anymore.