From 0c583d8b2da0875c77da647619d68093a15ea545 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 3 Dec 2024 09:47:52 +0800 Subject: Update winos.lua --- xmake/core/base/winos.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/base/winos.lua b/xmake/core/base/winos.lua index f2bc7b7d4..b425447cd 100644 --- a/xmake/core/base/winos.lua +++ b/xmake/core/base/winos.lua @@ -192,7 +192,7 @@ function winos.cmdargv(argv, opt) -- if host is not Windows, paths may start with '/', which conflicts with '/' -- note that checking if the next argument ends with '.json' will only work for /sourceDependencies -- other arguments will remain broken, perhaps we should discuss a better solution - if idx + 1 <= #argv and arg:find("^[-/]") and (os.is_host("windows") and (not arg1:find("^[-/]")) or (arg1:find("%.json$"))) then + if idx + 1 <= #argv and arg:find("^[-/]") and (os.is_host("windows") and (not arg1:find("^[-/]")) or (arg1:endswith(".json"))) then f:write(os.args(arg, {escape = opt.escape}) .. " ") f:write(os.args(arg1, {escape = opt.escape}) .. "\n") idx = idx + 2 -- cgit v1.3.1