From 2c38d7dc3d9c1eb90bb481968918170f5d127237 Mon Sep 17 00:00:00 2001 From: Redbeanw44602 Date: Mon, 28 Jul 2025 14:48:20 +0800 Subject: update. --- xmake/modules/package/tools/gn.lua | 2 +- xmake/modules/package/tools/xmake.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 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 diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 604e82a37..8a96f52da 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -527,7 +527,7 @@ function install(package, configs, opt) if njob then table.insert(argv, "--jobs=" .. njob) end - local target = table.wrap(opt.target or opt.targets) + local targets = table.wrap(opt.targets or opt.target) if #target ~= 0 then table.join2(argv, target) end @@ -536,7 +536,7 @@ function install(package, configs, opt) -- do install argv = {"install", "-y", "--nopkgs", "-o", package:installdir()} _set_builtin_argv(package, argv) - local targets = table.wrap(opt.target or opt.targets) + local targets = table.wrap(opt.targets or opt.target) if #targets ~= 0 then table.join2(argv, targets) end -- cgit v1.3.1