Merge pull request #7989

9cd7aa6 cmake: don't optimize debug build (selsta)
pull/8008/head
luigi1111 3 years ago
commit c458d5fe40
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -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")

Loading…
Cancel
Save