From 8529c642e58d116a9dc01c6d0935d503639148ac Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 13 Jul 2021 00:14:08 +0800 Subject: fix os.execv --- xmake/core/base/os.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1