summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-15 23:18:56 +0800
committerruki <[email protected]>2020-08-15 23:18:56 +0800
commitb12320f81e7badd3d181555fe094ab0f4015a3f2 (patch)
tree6b778fcce183f26e619aa1ab63cdde4883f1ccfd /xmake/modules/detect/tools/find_cl.lua
parent5c3712c3f7940af3cce30016f259cb55f874d6a2 (diff)
fix path for msvc/2008 on xp
Diffstat (limited to 'xmake/modules/detect/tools/find_cl.lua')
-rw-r--r--xmake/modules/detect/tools/find_cl.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/modules/detect/tools/find_cl.lua b/xmake/modules/detect/tools/find_cl.lua
index a6f5d2fa6..b0ca7fa4b 100644
--- a/xmake/modules/detect/tools/find_cl.lua
+++ b/xmake/modules/detect/tools/find_cl.lua
@@ -46,12 +46,10 @@ function main(opt)
-- find program version
local version = nil
if program and opt and opt.version then
- opt.command = opt.command or function () local _, info = os.iorun(program); return info end
+ opt.command = opt.command or function () local _, info = os.iorunv(program, {}, {envs = opt.envs}); return info end
opt.parse = opt.parse or function (output) return output:match("Version (%d+%.?%d*%.?%d*.-)%s") end
version = find_programver(program, opt)
end
-
- -- ok?
return program, version
end