diff options
| author | ruki <[email protected]> | 2021-07-13 00:14:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-07-13 00:14:08 +0800 |
| commit | 8529c642e58d116a9dc01c6d0935d503639148ac (patch) | |
| tree | 4e58fe34a43aaf60ab4471cc0c63fc6e2836106f /xmake/core/base/os.lua | |
| parent | 6382ff0ea787970774a8658b0e4c5e1d5a546672 (diff) | |
fix os.execv
Diffstat (limited to 'xmake/core/base/os.lua')
| -rw-r--r-- | xmake/core/base/os.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 15883dffc..d44ac3843 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -732,7 +732,7 @@ function os.execv(program, argv, opt) end envars[k] = v -- we need fix too long value before running process - if os.host() == "windows" and #v > 4096 then + if type(v) == "string" and #v > 4096 and os.host() == "windows" then os._split_long_pathenv(envars, k) end end |
