diff options
| author | ruki <[email protected]> | 2024-03-24 22:39:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-03-24 22:39:02 +0800 |
| commit | 08fd85acac5e38100a4696198e8eeb83f9864a9a (patch) | |
| tree | 8890b5500c376f1e05dc3b4a0371677e07190765 /xmake/modules/utils/platform/gnu2mslib.lua | |
| parent | e9cf2231246548d342de3583b5b7baa1a0fe8842 (diff) | |
pass runenvs to gnulib2mslib
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 f32da2060..c35b42faa 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 |
