diff options
| author | ruki <[email protected]> | 2020-06-22 23:17:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-22 13:42:41 +0800 |
| commit | ce6d63d5a4ea3df28fc21db6b4501d4b65480584 (patch) | |
| tree | fd1ab981ab8c102c173a4679fcbac218f6c79311 /xmake/modules/core/tools/ar.lua | |
| parent | 4e18de04e01386bf7304bbf9d08ec826a1fa6285 (diff) | |
fix mingw/gcc envs
Diffstat (limited to 'xmake/modules/core/tools/ar.lua')
| -rw-r--r-- | xmake/modules/core/tools/ar.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/ar.lua b/xmake/modules/core/tools/ar.lua index 576d40695..3e520f887 100644 --- a/xmake/modules/core/tools/ar.lua +++ b/xmake/modules/core/tools/ar.lua @@ -71,7 +71,8 @@ function link(self, objectfiles, targetkind, targetfile, flags) os.tryrm(targetfile) -- link it - os.runv(linkargv(self, objectfiles, targetkind, targetfile, flags)) + local program, argv = linkargv(self, objectfiles, targetkind, targetfile, flags) + os.runv(program, argv, {envs = self:runenvs()}) end -- extract the static library to object directory |
