Merge pull request #7989

9cd7aa6 cmake: don't optimize debug build (selsta)
This commit is contained in:
luigi1111 2021-10-11 13:05:25 -05:00
commit c458d5fe40
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -996,11 +996,6 @@ else()
endif()
set(DEBUG_FLAGS "-g3")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.8))
set(DEBUG_FLAGS "${DEBUG_FLAGS} -Og ")
else()
set(DEBUG_FLAGS "${DEBUG_FLAGS} -O0 ")
endif()
# At least some CLANGs default to not enough for monero
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=900")