From 78c38fcc2dc3185d10d21ab94bdda87a774348b7 Mon Sep 17 00:00:00 2001 From: Archie Hilton Date: Tue, 14 May 2024 21:48:06 +0100 Subject: [PATCH] Enable asan and ubsan --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 65fe7a5..0c37c27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 3.21) project(Exponent CXX) set(CMAKE_CXX_STANDARD 20) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize=undefined") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize=undefined -g") +set(CMAKE_BUILD_TYPE Debug) add_subdirectory(glfw) add_subdirectory(src)