Skip to content

Commit 9cffa9a

Browse files
committed
Do not use -Og for debug mode (won't work on Mac/clang)
1 parent 1b7bb37 commit 9cffa9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/EthCompilerSettings.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
7171
add_compile_options(-fPIC)
7272

7373
# Configuration-specific compiler settings.
74-
set(CMAKE_CXX_FLAGS_DEBUG "-Og -g -DETH_DEBUG")
74+
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -DETH_DEBUG")
7575
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
7676
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
7777
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")

0 commit comments

Comments
 (0)