Skip to content

Commit c4d43bd

Browse files
authored
[cmake] change -Os flag -> Ofast to boost performance on Android (PaddlePaddle#652)
- change -Os flag -> Ofast to boost performance on Android
1 parent 8fde2b4 commit c4d43bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ endif()
4646

4747
if(ANDROID)
4848
# To reduce the volume of the library
49-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g0 -Os -ffunction-sections -fdata-sections")
50-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g0 -Os -ffunction-sections -fdata-sections")
49+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g0 -Ofast -ffunction-sections -fdata-sections")
50+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g0 -Ofast -ffunction-sections -fdata-sections")
5151
endif()
5252

5353
############################# Basic Options for FastDeploy ################################

0 commit comments

Comments
 (0)