diff options
| -rw-r--r-- | xmake/actions/config/main.lua | 3 | ||||
| -rw-r--r-- | 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 |
