about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbbbruni <77002160+bbbruni@users.noreply.github.com>2021-10-21 22:31:50 +0300
committerGitHub <noreply@github.com>2021-10-21 22:31:50 +0300
commitd5e105ce620863f11d3ef6b53bf14beca97b4f80 (patch)
tree591db8f4320060db118273aac806b1137624091c
parent45ee1e3c3c31835bcb77bd51e57c3681cea19bb9 (diff)
downloadbox64-d5e105ce620863f11d3ef6b53bf14beca97b4f80.tar.gz
box64-d5e105ce620863f11d3ef6b53bf14beca97b4f80.zip
Disable compiler optimizations in debug mode
-rwxr-xr-xCMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 75ee4719..e46d00ac 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.4)
 
 cmake_policy(SET CMP0065 NEW)
 
+SET(CMAKE_C_FLAGS_DEBUG  "-O0 -g")
+SET(CMAKE_CXX_FLAGS_DEBUG  "-O0 -g")
+
 option(RPI4ARM64 "Set to ON if targeting an RaspberryPI4 device with multiarch arm64 and armhf" ${RPI4ARM64})
 option(RK3326 "Set to ON if targeting an Rockchip RK3326 based device" ${RK3326})
 option(RK3399 "Set to ON if targeting an Rockchip RK3399 based device" ${RK3399})