From c2c9cfeef4feca868a35585caa746691a3675889 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 24 Apr 2025 22:44:06 +0800 Subject: improve warnings --- xmake/actions/config/main.lua | 3 +++ xmake/core/project/config.lua | 3 --- 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 -- cgit v1.3.1