summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-26 22:51:01 +0800
committerruki <[email protected]>2024-01-26 22:51:01 +0800
commite8c8fae2e3ada7f38b47c9238ee547ac06193241 (patch)
tree216f16af45c80ff8bd00ce289e81781bad844609
parentb67d2ce203e9535e0f2004ce7f81a690a79ec0ca (diff)
add deprecated tips
-rw-r--r--xmake/core/sandbox/modules/import/core/project/policy.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/policy.lua b/xmake/core/sandbox/modules/import/core/project/policy.lua
index bebb0aab4..e4e1c576c 100644
--- a/xmake/core/sandbox/modules/import/core/project/policy.lua
+++ b/xmake/core/sandbox/modules/import/core/project/policy.lua
@@ -25,6 +25,7 @@ local sandbox_core_project_policy = sandbox_core_project_policy or {}
local table = require("base/table")
local global = require("base/global")
local option = require("base/option")
+local utils = require("base/utils")
local policy = require("project/policy")
local project = require("project/project")
local raise = require("sandbox/modules/raise")
@@ -40,6 +41,9 @@ function sandbox_core_project_policy.build_warnings(opt)
end
local warnings = sandbox_core_project_policy._BUILD_WARNINGS
if warnings == nil then
+ if option.get("warning") then
+ utils.warning("\"xmake build -w\" option has been deprecated, the warning output has been enabled by default.")
+ end
warnings = option.get("diagnosis")
if warnings == nil and os.isfile(os.projectfile()) and project.policy("build.warning") ~= nil then
warnings = project.policy("build.warning")