aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/EthCompilerSettings.cmake
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-11-15 05:43:28 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-11-15 05:43:28 +0800
commit35def4735e53429edf0767b2c4f74dc7bb2617f4 (patch)
tree2811793d83e0bc9d6ed7ff24e206b3246f5fa6ee /cmake/EthCompilerSettings.cmake
parent58e75c7a48f8166cca41e9017dad351113952ab5 (diff)
downloaddexon-solidity-35def4735e53429edf0767b2c4f74dc7bb2617f4.tar.gz
dexon-solidity-35def4735e53429edf0767b2c4f74dc7bb2617f4.tar.zst
dexon-solidity-35def4735e53429edf0767b2c4f74dc7bb2617f4.zip
Compile with -Og in debug mode (by @chfast)
Diffstat (limited to 'cmake/EthCompilerSettings.cmake')
-rw-r--r--cmake/EthCompilerSettings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake
index af6ae928..0c307288 100644
--- a/cmake/EthCompilerSettings.cmake
+++ b/cmake/EthCompilerSettings.cmake
@@ -71,7 +71,7 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA
add_compile_options(-fPIC)
# Configuration-specific compiler settings.
- set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -DETH_DEBUG")
+ set(CMAKE_CXX_FLAGS_DEBUG "-Og -g -DETH_DEBUG")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")