Enable asan and ubsan

This commit is contained in:
Archie Hilton 2024-05-14 21:48:06 +01:00
parent 50461ad4c8
commit 78c38fcc2d
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 3.21)
project(Exponent CXX) project(Exponent CXX)
set(CMAKE_CXX_STANDARD 20) 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(glfw)
add_subdirectory(src) add_subdirectory(src)