projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e352d
)
Force build with -O2 instead of -O3 on 32-bit linux
author
Andrey Kamaev
<andrey.kamaev@itseez.com>
Tue, 23 Oct 2012 11:52:11 +0000
(15:52 +0400)
committer
Andrey Kamaev
<andrey.kamaev@itseez.com>
Tue, 23 Oct 2012 11:52:11 +0000
(15:52 +0400)
cmake/OpenCVCompilerOptions.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVCompilerOptions.cmake
b/cmake/OpenCVCompilerOptions.cmake
index
e84957b
..
8981f4b
100644
(file)
--- a/
cmake/OpenCVCompilerOptions.cmake
+++ b/
cmake/OpenCVCompilerOptions.cmake
@@
-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
if(CMAKE_COMPILER_IS_GNUCXX)
foreach(flags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG)