Skip to content

Commit

Permalink
Revert "Remove -Oz"
Browse files Browse the repository at this point in the history
This reverts commit 92ed401.
luoyesiqiu committed Jan 2, 2025
1 parent 4259dba commit d8d4629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
add_definitions(-DDEBUG)
message(WARNING "!!!WARNNING:opened log!!!")
else()
set(OPTIMIZATION_LEVEL "")
set(OPTIMIZATION_LEVEL "-Oz")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden ${OPTIMIZATION_LEVEL}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden ${OPTIMIZATION_LEVEL}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--exclude-libs,ALL")

0 comments on commit d8d4629

Please sign in to comment.