Skip to content

Commit

Permalink
Add optimization flag back (level 2) (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioHewardt authored Nov 15, 2024
1 parent d4d44e3 commit ffec07a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ else()
)
endif()

target_compile_options(procdump PRIVATE -g -pthread -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Werror -D_GNU_SOURCE -std=c++11)
target_compile_options(procdump PRIVATE -g -pthread -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Werror -D_GNU_SOURCE -std=c++11 -O2)

target_include_directories(procdump PUBLIC
${procdump_INC}
Expand Down Expand Up @@ -335,4 +335,4 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
)

set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES procdump.ebpf.o)
endif()
endif()

0 comments on commit ffec07a

Please sign in to comment.