diff options
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua index 7220b59c2..12bad4a0d 100644 --- a/xmake/modules/core/tools/link.lua +++ b/xmake/modules/core/tools/link.lua @@ -137,8 +137,8 @@ function linkargv(self, objectfiles, targetkind, targetfile, flags, opt) table.insert(argv, 1, "-lib") elseif targetkind == "shared" then table.insert(argv, 1, "-dll") - if opt.implibdir then - table.insert(argv, "/IMPLIB:" .. path.join(opt.implibdir, path.basename(targetfile) .. ".lib")) + if opt.implib then + table.insert(argv, "/IMPLIB:" .. opt.implib) end end return self:program(), argv @@ -151,8 +151,8 @@ function link(self, objectfiles, targetkind, targetfile, flags, opt) os.mkdir(path.directory(targetfile)) -- ensure the implib directory - if opt and opt.implibdir then - os.mkdir(opt.implibdir) + if opt and opt.implib then + os.mkdir(path.directory(opt.implib)) end try |
