summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ml.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-22 23:17:06 +0800
committerruki <[email protected]>2020-06-22 13:42:41 +0800
commitce6d63d5a4ea3df28fc21db6b4501d4b65480584 (patch)
treefd1ab981ab8c102c173a4679fcbac218f6c79311 /xmake/modules/core/tools/ml.lua
parent4e18de04e01386bf7304bbf9d08ec826a1fa6285 (diff)
fix mingw/gcc envs
Diffstat (limited to 'xmake/modules/core/tools/ml.lua')
-rw-r--r--xmake/modules/core/tools/ml.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/ml.lua b/xmake/modules/core/tools/ml.lua
index a6523243d..3d6fb7c18 100644
--- a/xmake/modules/core/tools/ml.lua
+++ b/xmake/modules/core/tools/ml.lua
@@ -96,7 +96,7 @@ function compargv(self, sourcefile, objectfile, flags)
end
-- compile the source file
-function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
+function compile(self, sourcefile, objectfile, dependinfo, flags)
-- ensure the object directory
os.mkdir(path.directory(objectfile))
@@ -106,7 +106,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
function ()
-- @note we need not uses vstool.runv to enable unicode output for ml.exe
local program, argv = compargv(self, sourcefile, objectfile, flags)
- os.runv(program, argv, {envs = opt.envs})
+ os.runv(program, argv, {envs = self:runenvs()})
end,
catch
{