diff options
| author | ruki <[email protected]> | 2024-12-03 09:47:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-12-03 09:47:52 +0800 |
| commit | 0c583d8b2da0875c77da647619d68093a15ea545 (patch) | |
| tree | 6ece5c199f1d7abd1f457781529171696f94a231 | |
| parent | dc9e1260063bb92d80a9ec9925bf19b6cc0bfb1e (diff) | |
Update winos.lua
| -rw-r--r-- | xmake/core/base/winos.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 '/<argname>' -- 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 |
