diff options
| author | ruki <[email protected]> | 2025-04-24 22:42:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-24 10:24:45 +0800 |
| commit | ff67a6a7936dff1fd3549c003c87aa812c435474 (patch) | |
| tree | 4ae8d52708fe38ce1d38801e1e85a695ef0c2fce /xmake/modules/package/tools/ninja.lua | |
| parent | d75240a009a7f295e31568c83fe9e93de1be431d (diff) | |
rename more buildir in plugins
Diffstat (limited to 'xmake/modules/package/tools/ninja.lua')
| -rw-r--r-- | xmake/modules/package/tools/ninja.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/ninja.lua b/xmake/modules/package/tools/ninja.lua index 2d2fb734d..1afc6056e 100644 --- a/xmake/modules/package/tools/ninja.lua +++ b/xmake/modules/package/tools/ninja.lua @@ -24,8 +24,11 @@ import("lib.detect.find_tool") function _default_argv(package, configs, opt) opt = opt or {} - local buildir = opt.buildir or os.curdir() + local builddir = opt.builddir or opt.buildir or os.curdir() local njob = opt.jobs or option.get("jobs") or tostring(os.default_njob()) + if opt.buildir then + wprint("{buildir = } has been deprecated, please use {builddir = } in ninja.install") + end local argv = {} local targets = table.wrap(opt.target) @@ -33,7 +36,7 @@ function _default_argv(package, configs, opt) table.join2(argv, targets) end table.insert(argv, "-C") - table.insert(argv, buildir) + table.insert(argv, builddir) if option.get("diagnosis") then table.insert(argv, "-v") end |
