From 4c6ea8fc3681cab9cedadca221263f300726b232 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 6 Feb 2024 00:59:22 +0800 Subject: improve to find cosmocc --- xmake/modules/detect/tools/find_cosmocc.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1