summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-25 22:59:36 +0800
committerruki <[email protected]>2024-01-25 22:59:36 +0800
commitef5cf74c8e31fbda01b75187e6c934331ad46009 (patch)
treeb8d56fbc8a82087aa468aad724ddd1ae0a34d025
parent21aeb8d32ec1892904cc34a57e9c2c3d83b9f1bd (diff)
enable warning output by default
-rw-r--r--xmake/core/project/policy.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua
index 84f29dd06..e7212189e 100644
--- a/xmake/core/project/policy.lua
+++ b/xmake/core/project/policy.lua
@@ -48,8 +48,8 @@ function policy.policies()
["build.ccache"] = {description = "Enable C/C++ build cache.", type = "boolean"},
-- Use global storage if build.ccache is enabled
["build.ccache.global_storage"] = {description = "Use global storge if build.ccache is enabled.", 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"},
+ -- Enable build warning output, it's enabled by default.
+ ["build.warning"] = {description = "Enable build warning output.", default = true, 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.