diff options
| author | ruki <[email protected]> | 2025-10-11 00:53:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-11 00:53:20 +0800 |
| commit | 98a47a1e2d0884adb2cdbe52c3a570b0c0e70022 (patch) | |
| tree | 662a2c5ad01614abe97598d4dcb1c0e6bbec97a1 /xmake/core/project | |
| parent | 861286dcb6caaa7b7a9817a2e9804eeb2e868b59 (diff) | |
improve implib
Diffstat (limited to 'xmake/core/project')
| -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 |
