diff options
| -rw-r--r-- | xmake/actions/require/info.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/actions/require/info.lua b/xmake/actions/require/info.lua index f2d2fe5ed..5cbc81a23 100644 --- a/xmake/actions/require/info.lua +++ b/xmake/actions/require/info.lua @@ -154,6 +154,18 @@ function main(package_names) end end + -- show supported platforms + local platforms = {} + local on_install = instance:get("install") + if type(on_install) == "table" then + for plat, _ in pairs(on_install) do + table.insert(platforms, plat) + end + else + table.insert(platforms, "all") + end + cprint(" -> ${magenta}platforms${clear}: %s", table.concat(platforms, ", ")) + -- show requires cprint(" -> ${magenta}requires${clear}:") cprint(" -> ${cyan}plat${clear}: %s", instance:plat()) |
