-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
CMakeCompiler Options Silently change -O3 to -O2 #8923
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable