summaryrefslogtreecommitdiff
path: root/xmake/modules/utils
diff options
context:
space:
mode:
authorruki <[email protected]>2024-03-25 22:39:26 +0800
committerruki <[email protected]>2024-03-25 22:39:26 +0800
commite1d5f432ab3d0fac43ee6a4852efe7b99f6ef428 (patch)
treecca8fddff8e111c05649f156c78be3c2e2553378 /xmake/modules/utils
parent08fd85acac5e38100a4696198e8eeb83f9864a9a (diff)
improve gnu2mslib
Diffstat (limited to 'xmake/modules/utils')
-rw-r--r--xmake/modules/utils/platform/gnu2mslib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/platform/gnu2mslib.lua b/xmake/modules/utils/platform/gnu2mslib.lua
index c35b42faa..c1aff4c7d 100644
--- a/xmake/modules/utils/platform/gnu2mslib.lua
+++ b/xmake/modules/utils/platform/gnu2mslib.lua
@@ -104,7 +104,7 @@ function main(mslib, gnulib_or_defpath, opt)
assert(defpath and os.isfile(defpath), "gnu2mslib(): convert failed, cannot get .def file!")
-- generate mslib from gnulib
- os.vrunv(libtool.program, {"/def:" .. defpath, "/name:" .. path.filename(dllname), "/out:" .. mslib}, {envs = msvc:runenvs()})
+ os.vrunv(libtool.program, {"/machine:" .. opt.arch, "/def:" .. defpath, "/name:" .. path.filename(dllname), "/out:" .. mslib}, {envs = msvc:runenvs()})
-- remove temporary .def file
if not gnulib_or_defpath:endswith(".def") then