File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
platforms/ios/cmake/Modules/Platform Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ endif(WIN32 AND NOT MINGW)
26
26
ocv_warnings_disable (CMAKE_C_FLAGS -Wno-implicit-function-declaration -Wno-uninitialized -Wmissing-prototypes
27
27
-Wno-unused-but-set-parameter -Wmissing-declarations -Wunused -Wshadow
28
28
-Wsign-compare -Wstrict-overflow -Wpointer-compare )
29
- ocv_warnings_disable (CMAKE_C_FLAGS -Wunused-parameter ) # clang
29
+ ocv_warnings_disable (CMAKE_C_FLAGS -Wunused-parameter -Wstrict-prototypes ) # clang
30
30
ocv_warnings_disable (CMAKE_C_FLAGS /wd4013 /wd4018 /wd4101 /wd4244 /wd4267 /wd4715 ) # vs2005
31
31
32
32
if (UNIX )
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
160
160
# Other optimizations
161
161
if (ENABLE_OMIT_FRAME_POINTER )
162
162
add_extra_compiler_option (-fomit-frame-pointer )
163
- else ( )
163
+ elseif ( DEFINED ENABLE_OMIT_FRAME_POINTER )
164
164
add_extra_compiler_option (-fno-omit-frame-pointer )
165
165
endif ()
166
166
if (ENABLE_FAST_MATH )
Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ set (no_warn "-Wno-unused-function -Wno-overloaded-virtual")
51
51
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${no_warn} " )
52
52
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -fvisibility=hidden -fvisibility-inlines-hidden ${no_warn} " )
53
53
54
- set (CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3 -fomit-frame-pointer -ffast-math" )
54
+ set (CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3 -ffast-math" )
55
+ if (NOT IOS_ARCH STREQUAL "armv7" )
56
+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fomit-frame-pointer" )
57
+ endif ()
55
58
56
59
if (HAVE_FLAG_SEARCH_PATHS_FIRST )
57
60
set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS} " )
You can’t perform that action at this time.
0 commit comments