From 2cee880ef4ba9f4369b7e464eec87c4fec55d7fc Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 24 May 2018 02:33:03 +0200 Subject: Add more runtime checks for debug builds --- backend/ninja/Ninja.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index 7053d43..35922ee 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -722,7 +722,7 @@ namespace backend switch (config.getOptimizationLevel()) { case OPT_LEV_DEBUG: - result += " -g3 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables "; + result += " -g3 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables -fsanitize=address -fsanitize=undefined "; break; case OPT_LEV_RELEASE: result += " -g0"; -- cgit v1.2.3