Nimbin[12]?SDL & Graphics / mapcreator / commits / 9812cf0

mapcreator git · master

SDL3 2.5D game and engine using assets, with map editor

sdl3 c++ game engine map-editor cmake · first commit 2025-10-31 · last commit 2026-09-07 (1 month ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-spieleentwicklung/map_creator

C++ 99.3%
git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gz

Add better debugging flag?

Christian Immanuel · 2026-02-17 12:04 · 9812cf0418d185b28b7f247eb34de4c5acbc8567

 CMakeLists.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0c9b9e..cef6a9e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,12 +32,14 @@ target_link_libraries(map_editor
 target_compile_options(map_editor PRIVATE -Wall -Wextra)
 
 if(ENABLE_DEBUG STREQUAL "NOOPT")
-    target_compile_options(map_editor PRIVATE -g -O0)
+    target_compile_options(map_editor PRIVATE -fsanitize=address -fno-omit-frame-pointer -g -O0)
+    target_link_options(map_editor PRIVATE -fsanitize=address)
     target_compile_definitions(map_editor PRIVATE)
 
 elseif(ENABLE_DEBUG STREQUAL "DEBUG")
     set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type" FORCE)
-    target_compile_options(map_editor PRIVATE -g -O0)
+    target_compile_options(map_editor PRIVATE -fsanitize=address -fno-omit-frame-pointer -g -O0)
+    target_link_options(map_editor PRIVATE -fsanitize=address)
     target_compile_definitions(map_editor PRIVATE DEBUG_BUILD)
 
 elseif(ENABLE_DEBUG STREQUAL "OPTIMIZED")