summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-24 22:44:06 +0800
committerruki <[email protected]>2025-04-24 10:24:45 +0800
commitc2c9cfeef4feca868a35585caa746691a3675889 (patch)
treef5464524fe975e9a2e890489c299d8742bc13fc7
parentff67a6a7936dff1fd3549c003c87aa812c435474 (diff)
improve warnings
-rw-r--r--xmake/actions/config/main.lua3
-rw-r--r--xmake/core/project/config.lua3
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua
index 02ca58799..4ebbbe406 100644
--- a/xmake/actions/config/main.lua
+++ b/xmake/actions/config/main.lua
@@ -373,6 +373,9 @@ force to build in current directory via run `xmake -P .`]], os.projectdir())
-- translate the build directory
local builddir = config.get("builddir") or config.get("buildir")
+ if config.get("buildir") then
+ wprint("`xmake f --buildir=` has been deprecated, please use `xmake f -o/--builddir=`")
+ end
if builddir and path.is_absolute(builddir) then
config.set("builddir", path.relative(builddir, project.directory()), {readonly = true, force = true})
end
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua
index 507e70a00..1c03fe871 100644
--- a/xmake/core/project/config.lua
+++ b/xmake/core/project/config.lua
@@ -78,9 +78,6 @@ function config.get(name)
value = nil
end
end
- if name == "buildir" then
- utils.warning("`xmake f --buildir=` has been deprecated, please use `xmake f -o/--builddir=`")
- end
return value
end