summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorruki <[email protected]>2026-06-18 21:00:07 +0800
committerruki <[email protected]>2026-06-18 21:00:07 +0800
commit43a4e2c277d003251f476e8aa5b2f0efbe2f3ae7 (patch)
tree140c4f0a1376cfde9cef98b33dd66361183661c6 /xmake/plugins
parent80f6dba52aa17a4900a51f76da7f05cf3d5fa73c (diff)
improve to check multiple targets
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/show/info/depgraph.lua4
-rw-r--r--xmake/plugins/show/info/target.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/xmake/plugins/show/info/depgraph.lua b/xmake/plugins/show/info/depgraph.lua
index 2c73f3abc..b8107a558 100644
--- a/xmake/plugins/show/info/depgraph.lua
+++ b/xmake/plugins/show/info/depgraph.lua
@@ -23,7 +23,7 @@ import("core.base.option")
import("core.base.json")
import("core.project.config")
import("core.project.project")
-import("private.detect.check_targetname")
+import("private.detect.check_targetnames")
function _collect_target_entry(target)
local deps = {}
@@ -135,7 +135,7 @@ function main(name)
local root_target
if name then
- root_target = assert(check_targetname(name))
+ root_target = assert(check_targetnames(name))
end
local graph = _collect_target_graph(root_target)
diff --git a/xmake/plugins/show/info/target.lua b/xmake/plugins/show/info/target.lua
index 75f31f9a5..099a0419d 100644
--- a/xmake/plugins/show/info/target.lua
+++ b/xmake/plugins/show/info/target.lua
@@ -24,7 +24,7 @@ import("core.base.json")
import("core.base.hashset")
import("core.project.config")
import("core.language.language")
-import("private.detect.check_targetname")
+import("private.detect.check_targetnames")
-- get source info data
function _get_sourceinfo(target, name, item, opt)
@@ -371,7 +371,7 @@ function main(name)
end
assert(name, "please specify the target name, e.g. xmake show --info=target --target=xxx")
- local target = assert(check_targetname(name))
+ local target = assert(check_targetnames(name))
local info = _collect_target_info(target)
if format == "json" then