From e1d5f432ab3d0fac43ee6a4852efe7b99f6ef428 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 25 Mar 2024 22:39:26 +0800 Subject: improve gnu2mslib --- xmake/modules/utils/platform/gnu2mslib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/utils/platform/gnu2mslib.lua') 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 -- cgit v1.3.1