diff options
| author | ruki <[email protected]> | 2025-11-14 23:29:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-14 23:29:52 +0800 |
| commit | 4f6a4ba89e0138ea5b6b1b86b2599ad711e29ba0 (patch) | |
| tree | 2076a7a62f50fc79430a5dbbebc7586df632b385 | |
| parent | e4617488a56abbd89c24be114e8f7ae36da289e8 (diff) | |
fix show target
| -rw-r--r-- | xmake/plugins/show/info/target.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/plugins/show/info/target.lua b/xmake/plugins/show/info/target.lua index 9400ad2fe..67f9c4a69 100644 --- a/xmake/plugins/show/info/target.lua +++ b/xmake/plugins/show/info/target.lua @@ -70,8 +70,7 @@ function _get_values_from_opts(target, name) for _, opt_ in ipairs(target:orderopts()) do for _, value in ipairs(opt_:get(name)) do local tips = string.format("option(%s)", opt_:name()) - local sourceinfo = _get_sourceinfo(opt_, name, value, {tips = tips}) - values[value] = sourceinfo or {tips = tips} + values[value] = _get_sourceinfo(opt_, name, value, {tips = tips}) end end return values @@ -342,6 +341,9 @@ function _print_target_info(info) if info.compilers then for _, compiler in ipairs(info.compilers) do cprint(" ${color.dump.string}compiler (%s)${clear}: %s", compiler.sourcekind, compiler.program) + if compiler.flags then + cprint(" ${color.dump.reference}->${clear} %s", compiler.flags) + end end for _, compiler in ipairs(info.compilers) do cprint(" ${color.dump.string}compflags (%s)${clear}:", compiler.sourcekind) |
