mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Force build with -O2 instead of -O3 on 32-bit linux
This commit is contained in:
parent
22e352d9cc
commit
ed00642600
@ -1,4 +1,4 @@
|
|||||||
if(MINGW)
|
if(MINGW OR (X86 AND UNIX AND NOT APPLE))
|
||||||
# mingw compiler is known to produce unstable SSE code with -O3 hence we are trying to use -O2 instead
|
# mingw compiler is known to produce unstable SSE code with -O3 hence we are trying to use -O2 instead
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
foreach(flags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG)
|
foreach(flags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG)
|
||||||
|
Loading…
Reference in New Issue
Block a user