summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-04-24 22:42:49 +0800
committerruki <[email protected]>2025-04-24 10:24:45 +0800
commitff67a6a7936dff1fd3549c003c87aa812c435474 (patch)
tree4ae8d52708fe38ce1d38801e1e85a695ef0c2fce /xmake/modules/package/tools/xmake.lua
parentd75240a009a7f295e31568c83fe9e93de1be431d (diff)
rename more buildir in plugins
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
-rw-r--r--xmake/modules/package/tools/xmake.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index 0f19c6a88..35ed6fd23 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -315,9 +315,12 @@ function _get_configs(package, configs, opt)
if shflags and #shflags > 0 then
table.insert(configs, "--shflags=" .. table.concat(shflags, ' '))
end
- local buildir = opt.buildir or package:builddir()
- if buildir then
- table.insert(configs, "--buildir=" .. buildir)
+ local builddir = opt.builddir or opt.buildir or package:builddir()
+ if builddir then
+ table.insert(configs, "--builddir=" .. builddir)
+ end
+ if opt.buildir then
+ wprint("{buildir = } has been deprecated, please use {builddir = } in xmake.install")
end
return configs
end