summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/run/make_runenvs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/run/make_runenvs.lua b/xmake/modules/private/action/run/make_runenvs.lua
index 6f1ff3c04..8b804e3fc 100644
--- a/xmake/modules/private/action/run/make_runenvs.lua
+++ b/xmake/modules/private/action/run/make_runenvs.lua
@@ -38,7 +38,7 @@ function _make_runpath_on_windows(target)
-- recursively add targets and dep targets linkdirs
local seentargets = hashset.new()
local function insert_target(target)
- if seentargets:insert(target)
+ if seentargets:insert(target) then
for _, linkdir in ipairs(target:get("linkdirs")) do
insert(linkdir)
end