diff options
| -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 |
