summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorShifftC <[email protected]>2025-09-16 18:10:56 +0200
committerShifftC <[email protected]>2025-09-16 18:42:16 +0200
commita69e527c0afbe87cd8373b4bced293bf00a020d6 (patch)
tree639f516502235c268a329871aeca2934e869f85b /xmake/plugins
parent1a758e59eeec08e6bd04d8c2c94e98f8ad00dba4 (diff)
show: fix linker info for non-linkable targets
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/show/info/target.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/plugins/show/info/target.lua b/xmake/plugins/show/info/target.lua
index 93648e716..d5ddfbe76 100644
--- a/xmake/plugins/show/info/target.lua
+++ b/xmake/plugins/show/info/target.lua
@@ -227,7 +227,7 @@ function _show_target(target)
cprint(" ${color.dump.reference}->${clear} %s", os.args(compinst:compflags()))
end
end
- local linker = target:linker()
+ local linker = targetfile and 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()))
@@ -239,7 +239,6 @@ function _show_target(target)
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}:", linker:kind())
cprint(" ${color.dump.reference}->${clear} %s", os.args(linker:linkflags({target = target})))