Skip to content

Commit cb212b7

Browse files
committed
Set O3 compile flag
1 parent f22abd8 commit cb212b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

avif-coder/src/main/cpp/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ if(ANDROID_ABI STREQUAL arm64-v8a)
4444
add_definitions("-DHAVE_NEON=1")
4545
endif()
4646

47+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
48+
4749
target_include_directories(coder PRIVATE ${CMAKE_SOURCE_DIR}/libheif ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/libyuv)
4850
# Searches for a specified prebuilt library and stores the path as a
4951
# variable. Because CMake includes system libraries in the search path by

0 commit comments

Comments
 (0)