summaryrefslogtreecommitdiff
path: root/xmake/core/project/policy.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-21 22:38:18 +0800
committerruki <[email protected]>2023-09-21 22:38:18 +0800
commit3d9cf6af8a3fae36dbb5e8fe055a54000ddcadfb (patch)
tree6ecc187316c099057cdad9cdeeaa8d93ef73913e /xmake/core/project/policy.lua
parent5c619b17b5847b18d284323830dedaeff9d5d6ed (diff)
add asan support for package and policy
Diffstat (limited to 'xmake/core/project/policy.lua')
-rw-r--r--xmake/core/project/policy.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index 96ed1adaf..c5d9be573 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -52,6 +52,8 @@ function policy.policies()
["build.warning"] = {description = "Enable build warning output.", type = "boolean"},
-- Enable LTO linker-time optimization for c/c++ building.
["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 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