Skip to content

CMakeCompiler Options Silently change -O3 to -O2 #8923

@adishavit

Description

@adishavit

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions