diff options
| author | ruki <[email protected]> | 2024-12-02 22:46:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-12-02 22:46:14 +0800 |
| commit | c736671feca48bcce183401a4ac96fddb77895b7 (patch) | |
| tree | a7c70410c99de61fac6d8bac07c91019b96ad437 | |
| parent | d10447f1649a8829d45fa0324281fd4aba3b5e9e (diff) | |
fix cmdargv
| -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 e8a09a2ae..30a2d1eba 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 = is_host("windows") and "ansi"}) + local f = io.open(argsfile, 'w', {encoding = os.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 |
