summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/gn.lua
diff options
context:
space:
mode:
authorRedbeanw44602 <[email protected]>2025-07-28 14:48:20 +0800
committerRedbeanw44602 <[email protected]>2025-07-28 14:48:20 +0800
commit2c38d7dc3d9c1eb90bb481968918170f5d127237 (patch)
tree91aca033a1fea689f8d309f71d6b58a01dfab07e /xmake/modules/package/tools/gn.lua
parent64718da24b520c4825ea419813c47c313d469e1d (diff)
update.
Diffstat (limited to 'xmake/modules/package/tools/gn.lua')
-rw-r--r--xmake/modules/package/tools/gn.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/gn.lua b/xmake/modules/package/tools/gn.lua
index 5d6815c8e..bb4132310 100644
--- a/xmake/modules/package/tools/gn.lua
+++ b/xmake/modules/package/tools/gn.lua
@@ -127,7 +127,7 @@ function build(package, configs, opt)
-- do build
local builddir = _get_builddir(opt)
- local targets = table.wrap(opt.target or opt.targets)
+ local targets = table.wrap(opt.targets or opt.target)
ninja.build(package, targets, {builddir = builddir, envs = opt.envs or buildenvs(package, opt)})
end