summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/link.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
-rw-r--r--xmake/modules/core/tools/link.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua
index a144d515e..3e51ad40a 100644
--- a/xmake/modules/core/tools/link.lua
+++ b/xmake/modules/core/tools/link.lua
@@ -102,7 +102,7 @@ end
-- make the link flag
function nf_link(self, lib)
- if not lib:endswith(".lib") then
+ if not lib:endswith(".lib") and not lib:endswith(".obj") then
lib = lib .. ".lib"
end
return lib