aboutsummaryrefslogtreecommitdiff
path: root/backend/ninja
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ninja')
-rw-r--r--backend/ninja/Ninja.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp
index 980ef2c..8b815cb 100644
--- a/backend/ninja/Ninja.cpp
+++ b/backend/ninja/Ninja.cpp
@@ -412,6 +412,8 @@ namespace backend
return ninja::NinjaArg::createRaw("-fsanitize=undefined");
case Sanitize::LEAK:
return ninja::NinjaArg::createRaw("-fsanitize=leak");
+ case Sanitize::THREAD:
+ return ninja::NinjaArg::createRaw("-fsanitize=thread");
}
}
return {};
@@ -427,6 +429,8 @@ namespace backend
return ninja::NinjaArg::createRaw("-lubsan");
case Sanitize::LEAK:
return ninja::NinjaArg::createRaw("-llsan");
+ case Sanitize::THREAD:
+ return ninja::NinjaArg::createRaw("-ltsan");
}
return {};
}