We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcafeff + ef0e784 commit bfc0f75Copy full SHA for bfc0f75
xmake/modules/detect/tools/find_cl.lua
@@ -62,7 +62,9 @@ function main(opt)
62
return info
63
end
64
opt.parse = opt.parse or function (output)
65
- return output:match("(%d+%.%d+%.%d*.-)%s")
+ -- we only keep the first three digits of the version number, making sure to provide a valid semver string.
66
+ -- @see https://github.com/xmake-io/xmake/issues/6474
67
+ return output:match("%s(%d+%.%d+%.%d+)")
68
69
version = find_programver(program, opt)
70
0 commit comments