diff options
| author | SineStriker <[email protected]> | 2025-04-19 04:19:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-23 11:30:30 +0800 |
| commit | 160fee7b3a714f18a00e27dcc6cae01f0a8c9a45 (patch) | |
| tree | 5f48ab5759ec8bda35e378dec2c7b2770115bf8e | |
| parent | 065761c9a6ac381458850efbd3185628eccd9a2a (diff) | |
Fix implibdir in linker
| -rw-r--r-- | xmake/core/tool/linker.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua index d18bf3bd3..994695480 100644 --- a/xmake/core/tool/linker.lua +++ b/xmake/core/tool/linker.lua @@ -229,8 +229,11 @@ function linker:link(objectfiles, targetfile, opt) opt = table.copy(opt) opt.target = self:target() - if self:_targetkind() == "shared" and self:target():implibdir() then - opt.implibdir = self:target():implibdir() + if self:target():type() == "target" then + local implibdir = self:target():implibdir() + if implibdir then + opt.implibdir = implibdir + end end profiler:enter(self:name(), "link", targetfile) |
