summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-22 23:18:11 +0800
committerruki <[email protected]>2020-06-22 13:49:08 +0800
commit38158df077019782c3a56feea4f6f9913b785d1a (patch)
treed6b31f5177d6abbfb416af2335bc955452b90e24
parentce6d63d5a4ea3df28fc21db6b4501d4b65480584 (diff)
fix link envs for mingw/gcc
-rw-r--r--xmake/modules/core/tools/gcc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 4e16875c9..7896deab6 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -330,7 +330,8 @@ function link(self, objectfiles, targetkind, targetfile, flags)
os.mkdir(path.directory(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
-- has color diagnostics?