diff options
| author | ruki <[email protected]> | 2024-12-01 22:23:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-12-01 22:23:20 +0800 |
| commit | d10447f1649a8829d45fa0324281fd4aba3b5e9e (patch) | |
| tree | 619bad07ae9a19bfd6082e0af08b662de2320fae | |
| parent | 1c1b5c1d2b29aa44fb75178c85afcab3a3b12493 (diff) | |
fix winos.cmdargv for msvc-wine
| -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 68815bec8..e8a09a2ae 100644 --- a/xmake/core/base/winos.lua +++ b/xmake/core/base/winos.lua @@ -168,7 +168,7 @@ function winos.cmdargv(argv, opt) if argn > limit then opt = opt or {} local argsfile = os.tmpfile(opt.tmpkey or os.args(argv)) .. ".args.txt" - local f = io.open(argsfile, 'w', {encoding = "ansi"}) + local f = io.open(argsfile, 'w', {encoding = is_host("windows") and "ansi"}) if f then -- we need to split args file to solve `fatal error LNK1170: line in command file contains 131071 or more characters` -- @see https://github.com/xmake-io/xmake/issues/812 |
