diff options
| author | ruki <[email protected]> | 2024-02-06 00:59:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-06 00:59:22 +0800 |
| commit | 4c6ea8fc3681cab9cedadca221263f300726b232 (patch) | |
| tree | a45c3d46fcc4a6ef02de57bfb6449bcdcd64b250 | |
| parent | b5aa7bfa552889527db96a45a4cef91559f7aede (diff) | |
improve to find cosmocc
| -rw-r--r-- | xmake/modules/detect/tools/find_cosmocc.lua | 3 |
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 |
