aboutsummaryrefslogtreecommitdiff
path: root/backend/ninja
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-24 02:33:03 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:32 +0200
commit2cee880ef4ba9f4369b7e464eec87c4fec55d7fc (patch)
tree9d5ee0a7106d310c283fe612d6af96ba393c71b8 /backend/ninja
parent48483eab86f52a1eac64b56e767e88b86f665988 (diff)
Add more runtime checks for debug builds
Diffstat (limited to 'backend/ninja')
-rw-r--r--backend/ninja/Ninja.cpp2
1 files changed, 1 insertions, 1 deletions
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";