summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-06 00:59:22 +0800
committerruki <[email protected]>2024-02-06 00:59:22 +0800
commit4c6ea8fc3681cab9cedadca221263f300726b232 (patch)
treea45c3d46fcc4a6ef02de57bfb6449bcdcd64b250
parentb5aa7bfa552889527db96a45a4cef91559f7aede (diff)
improve to find cosmocc
-rw-r--r--xmake/modules/detect/tools/find_cosmocc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_cosmocc.lua b/xmake/modules/detect/tools/find_cosmocc.lua
index be7c873f8..4b0f689e4 100644
--- a/xmake/modules/detect/tools/find_cosmocc.lua
+++ b/xmake/modules/detect/tools/find_cosmocc.lua
@@ -42,5 +42,8 @@ function main(opt)
if program and opt and opt.version then
version = find_programver(program, opt)
end
+ if program then
+ program = program:gsub("\\", "/")
+ end
return program, version
end