summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/progress.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-10 00:53:43 +0800
committerruki <[email protected]>2026-03-10 00:53:43 +0800
commit85d6d2e1647374020ea63791bbe15b55d700b094 (patch)
treed5015a52003f2edc99d012c055aac655cecfa52b /xmake/modules/utils/progress.lua
parentdbd3e1a81718585105ed342ecc128df149590f70 (diff)
improve set target
Diffstat (limited to 'xmake/modules/utils/progress.lua')
-rw-r--r--xmake/modules/utils/progress.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua
index 40cab5ec3..3e7598ac2 100644
--- a/xmake/modules/utils/progress.lua
+++ b/xmake/modules/utils/progress.lua
@@ -378,7 +378,7 @@ end
-- set the associated target name for the progress object (coroutine-local)
-- it's safe to call with non-table progress (e.g. number), it will be ignored
function set_target(progress, target)
- if type(progress) == "table" and progress.set then
+ if _is_show_target_enabled() and type(progress) == "table" and progress.set then
progress:set("target_name", target:fullname())
end
end