diff options
| author | ShifftC <[email protected]> | 2025-02-08 15:27:53 +0100 |
|---|---|---|
| committer | ShifftC <[email protected]> | 2025-02-08 16:19:47 +0100 |
| commit | 5ff7887cc2e4124bcf98b7a3d83a3db0f6929273 (patch) | |
| tree | 6289af2cbfd19e0139ed7cd171287ff394413d45 | |
| parent | 640db3bf142689344a7f8c1a54371278ee7c96bc (diff) | |
Replace target check in plugin show
| -rw-r--r-- | xmake/plugins/show/info/target.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/show/info/target.lua b/xmake/plugins/show/info/target.lua index 871ed321a..6eb342e9a 100644 --- a/xmake/plugins/show/info/target.lua +++ b/xmake/plugins/show/info/target.lua @@ -22,8 +22,8 @@ import("core.base.option") import("core.base.hashset") import("core.project.config") -import("core.project.project") import("core.language.language") +import("lib.detect.check_targetname") -- get source info string function _get_sourceinfo_str(target, name, item, opt) @@ -247,7 +247,7 @@ function main(name) -- get target config.load() - local target = assert(project.target(name), "target(%s) not found!", name) + local target = assert(check_targetname(name)) -- show target information _show_target(target) |
