Skip to content

Commit

Permalink
pass runenvs to gnulib2mslib
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Mar 24, 2024
1 parent e9cf223 commit 08fd85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/utils/platform/gnu2mslib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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})
os.vrunv(libtool.program, {"/def:" .. defpath, "/name:" .. path.filename(dllname), "/out:" .. mslib}, {envs = msvc:runenvs()})

-- remove temporary .def file
if not gnulib_or_defpath:endswith(".def") then
Expand Down

0 comments on commit 08fd85a

Please sign in to comment.