diff options
| author | ruki <[email protected]> | 2023-02-03 22:45:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-03 22:45:01 +0800 |
| commit | f361b6b37f6a5e910c31fce7f7159359dc0e768d (patch) | |
| tree | 51b1acd45be770febcd0f7923d66dbd47b6a205b | |
| parent | cb25a376214336f59a6153a541835a6fe313f07b (diff) | |
improve to show target
| -rw-r--r-- | xmake/plugins/show/info/target.lua | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/xmake/plugins/show/info/target.lua b/xmake/plugins/show/info/target.lua index 85ba31df2..0b619a80e 100644 --- a/xmake/plugins/show/info/target.lua +++ b/xmake/plugins/show/info/target.lua @@ -212,13 +212,25 @@ function _show_target(target) for _, sourcekind in sourcekinds:keys() do local compinst = target:compiler(sourcekind) if compinst then - cprint(" ${color.dump.string}compflags (%s)${clear}: %s", sourcekind, compinst:program()) + cprint(" ${color.dump.string}compiler (%s)${clear}: %s", sourcekind, compinst:program()) + cprint(" ${color.dump.reference}->${clear} %s", os.args(compinst:compflags())) + end + end + local linker = target:linker() + if linker then + cprint(" ${color.dump.string}linker (%s)${clear}: %s", linker:kind(), linker:program()) + cprint(" ${color.dump.reference}->${clear} %s", os.args(linker:linkflags())) + end + for _, sourcekind in sourcekinds:keys() do + local compinst = target:compiler(sourcekind) + if compinst then + cprint(" ${color.dump.string}compflags (%s)${clear}:", sourcekind) cprint(" ${color.dump.reference}->${clear} %s", os.args(compinst:compflags({target = target}))) end end local linker = target:linker() if linker then - cprint(" ${color.dump.string}linkflags (%s)${clear}: %s", linker:kind(), linker:program()) + cprint(" ${color.dump.string}linkflags (%s)${clear}:", linker:kind()) cprint(" ${color.dump.reference}->${clear} %s", os.args(linker:linkflags({target = target}))) end end |
