diff options
| author | ruki <[email protected]> | 2021-09-16 00:31:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-16 00:31:02 +0800 |
| commit | 4cc9ef5e230ac3b765d26cdc3b0dd51ece2448e4 (patch) | |
| tree | 790fd7048c6f5eb18713ce41499719948b1f3fe3 /xmake/modules/core/tools/nvcc.lua | |
| parent | 43a72ecc3eba54b09dadcd0e8754dae7b23ed2da (diff) | |
improve mingw implib
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 1ca09401e..41093c502 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -259,9 +259,9 @@ function linkargv(self, objectfiles, targetkind, targetfile, flags) end -- add `-Wl,--out-implib,outputdir/libxxx.a` for xxx.dll on mingw/gcc - if targetkind == "shared" and config.plat() == "mingw" then + if targetkind == "shared" and is_plat("mingw") then table.insert(flags_extra, "-Xlinker") - table.insert(flags_extra, "-Wl,--out-implib," .. path.join(path.directory(targetfile), path.basename(targetfile) .. ".lib")) + table.insert(flags_extra, "-Wl,--out-implib," .. path.join(path.directory(targetfile), path.basename(targetfile) .. ".dll.a")) end -- make link args |
