Skip to content

Commit

Permalink
Add -O0 optimization parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg committed Dec 18, 2024
1 parent f14a69e commit d13bf41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ if(WIN32 AND MSVC)
add_definitions(/MP)
endif()

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (CMAKE_CXX_COMPILER_ID MATCHES "gcc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")

target_compile_options(${PROJECT_NAME} PRIVATE
#-falign-functions
#-faligned-allocation
Expand Down

0 comments on commit d13bf41

Please sign in to comment.