summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/link.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-06-29 22:42:21 +0800
committerruki <[email protected]>2023-06-29 22:42:21 +0800
commit0898fd246104e549351ecf58007314524825479f (patch)
treea14f6c17f6bbfeb1f6218e62ae8f1366a91c6df4 /xmake/modules/core/tools/link.lua
parent8a411ae004b06f6c1be10f82d0070faa1f92bb36 (diff)
support lib path for add_links #3889
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
-rw-r--r--xmake/modules/core/tools/link.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua
index 87ba80b88..ee68cf01f 100644
--- a/xmake/modules/core/tools/link.lua
+++ b/xmake/modules/core/tools/link.lua
@@ -100,7 +100,10 @@ end
-- make the link flag
function nf_link(self, lib)
- return lib .. ".lib"
+ if not lib:endswith(".lib") then
+ lib = lib .. ".lib"
+ end
+ return lib
end
-- make the syslink flag