diff options
| author | ruki <[email protected]> | 2023-06-29 22:42:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-06-29 22:42:21 +0800 |
| commit | 0898fd246104e549351ecf58007314524825479f (patch) | |
| tree | a14f6c17f6bbfeb1f6218e62ae8f1366a91c6df4 /xmake/modules/core/tools/link.lua | |
| parent | 8a411ae004b06f6c1be10f82d0070faa1f92bb36 (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.lua | 5 |
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 |
