summaryrefslogtreecommitdiff
path: root/xmake/core/project/policy.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-19 21:38:58 +0800
committerruki <[email protected]>2022-06-19 21:38:58 +0800
commitd43525ea44aeebe87068817549b2b9dbdb43c47b (patch)
treee74d4a8645ce147b09a97f0e1bc8ef5c9b0a7c43 /xmake/core/project/policy.lua
parente3b3ffbc6230e9dee45a38356095705f9705966f (diff)
add build.warning 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 c169b921e..e6a20aef9 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -47,6 +47,8 @@ function policy.policies()
["build.merge_archive"] = {description = "Enable merge archive intead of linking for all dependent targets.", default = false, type = "boolean"},
-- C/C++ build cache
["build.ccache"] = {description = "Enable C/C++ build cache.", type = "boolean"},
+ -- Enable build warning output, it's disabled by default and we need `xmake -w/-vD` to look at it.
+ ["build.warning"] = {description = "Enable build warning output.", type = "boolean"},
-- preprocessor configuration for ccache/distcc, we can disable linemarkers to speed up preprocess
["preprocessor.linemarkers"] = {description = "Enable linemarkers for preprocessor.", default = true, type = "boolean"},
-- preprocessor configuration for ccache/distcc, we can disable it to avoid cache object file with __DATE__, __TIME__