diff options
| author | ruki <[email protected]> | 2018-05-22 00:28:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-05-21 20:51:03 +0800 |
| commit | 25eab76f405d681b06c93a00e0e9a2b3f5b65644 (patch) | |
| tree | 7d81427fe77472aef17684c245b375470f9ea0fa /xmake/core/base | |
| parent | e657f348e658d91255fd01d347faf74ccafdfa4e (diff) | |
fix cmd length limit
Diffstat (limited to 'xmake/core/base')
| -rw-r--r-- | xmake/core/base/os.lua | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index e5377820f..2cf56e3df 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -586,17 +586,6 @@ function os.execv(program, argv, opt) -- translate arguments for wildcards argv = wildcards and os.argw(argv) or argv - -- too long arguments for windows? - local argsfile = nil - if os.host() == "windows" then - local args = os.args(argv) - if #args > 256 then - argsfile = os.tmpfile(args) .. ".args.txt" - io.writefile(argsfile, args) - argv = {"@" .. argsfile} - end - end - -- is not executable program file? local filename = program if not os.isexec(program) then @@ -646,11 +635,6 @@ function os.execv(program, argv, opt) process.close(proc) end - -- remove arguments file - if argsfile and os.isfile(argsfile) then - os.rm(argsfile) - end - -- ok? return ok end |
