diff options
| author | ruki <[email protected]> | 2025-10-11 00:49:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-11 00:49:27 +0800 |
| commit | aee72b64c8442750a02b23b6096543797702ce2b (patch) | |
| tree | f86d3cc083f74ebd511e424090661f07dd163e69 | |
| parent | 3af1837d3e212d9297de27964b6ccee6fdbe8bbe (diff) | |
add implib for binary
| -rw-r--r-- | xmake/core/project/target.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 2f69abdd8..3f9e7b813 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -1656,13 +1656,13 @@ end -- get the extra build artifact file -- -- supported artifact kinds: --- 1. implib: windows DLL implib(.lib, .dll.a) +-- 1. implib: windows DLL/EXE implib(.lib, .dll.a) -- -- otherwise returns nil -- function _instance:artifactfile(kind) if kind == "implib" then - if self:is_shared() and self:is_plat("windows", "mingw") then + if (self:is_shared() or self:is_binary()) and self:is_plat("windows", "mingw") then return path.join(self:_artifactdir("libdir"), path.basename(self:filename()) .. (self:is_plat("mingw") and ".dll.a" or ".lib")) end end |
