summaryrefslogtreecommitdiff
path: root/xmake/core
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-21 22:46:24 +0800
committerruki <[email protected]>2023-09-21 22:46:24 +0800
commita46eb50bda5710a6be361faff204c0f699545c5b (patch)
treec1580749f19604f4648f020ece4945b4661d11d0 /xmake/core
parentb607622a00a3bd4d31a6a7feb2ca1b49dd1108cf (diff)
add tsan, lsan, msan and ubsan policy
Diffstat (limited to 'xmake/core')
-rw-r--r--xmake/core/project/policy.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index c5d9be573..3ce75ca27 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -54,6 +54,14 @@ function policy.policies()
["build.optimization.lto"] = {description = "Enable LTO linker-time optimization for c/c++ building.", type = "boolean"},
-- Enable address sanitizer for c/c++ building.
["build.sanitizer.address"] = {description = "Enable address sanitizer for c/c++ building.", type = "boolean"},
+ -- Enable thread sanitizer for c/c++ building.
+ ["build.sanitizer.thread"] = {description = "Enable thread sanitizer for c/c++ building.", type = "boolean"},
+ -- Enable memort sanitizer for c/c++ building.
+ ["build.sanitizer.memory"] = {description = "Enable memory sanitizer for c/c++ building.", type = "boolean"},
+ -- Enable leak sanitizer for c/c++ building.
+ ["build.sanitizer.leak"] = {description = "Enable leak sanitizer for c/c++ building.", type = "boolean"},
+ -- Enable undefined sanitizer for c/c++ building.
+ ["build.sanitizer.undefined"] = {description = "Enable undefined sanitizer for c/c++ building.", type = "boolean"},
-- Enable C++ modules for C++ building, even if no .mpp is involved in the compilation
["build.c++.modules"] = {description = "Enable C++ modules for C++ building.", type = "boolean"},
-- Enable clang std modulemap