From 08fd85acac5e38100a4696198e8eeb83f9864a9a Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 24 Mar 2024 22:39:02 +0800 Subject: [PATCH] pass runenvs to gnulib2mslib --- xmake/modules/utils/platform/gnu2mslib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/utils/platform/gnu2mslib.lua b/xmake/modules/utils/platform/gnu2mslib.lua index f32da2060b..c35b42faad 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}) + 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