diff options
Diffstat (limited to 'xmake/modules/utils/platform/gnu2mslib.lua')
| -rw-r--r-- | xmake/modules/utils/platform/gnu2mslib.lua | 2 |
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 |
