summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-26 22:54:39 +0800
committerruki <[email protected]>2019-04-26 11:27:59 +0800
commit695a5e99906bbf0c4f11b68c9339222af3ebfb7d (patch)
treed14e58887134182842053d8c6618a9b1a1a152dd /xmake
parent344413267ec742dcec4d398f6f6e744ecd324d6b (diff)
pass envs to os.execv
Diffstat (limited to 'xmake')
-rw-r--r--xmake/core/base/os.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index dac5a3e44..b69dd1754 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -579,7 +579,7 @@ end
-- @param program "clang", "xcrun -sdk macosx clang", "~/dir/test\ xxx/clang"
-- filename "clang", "xcrun"", "~/dir/test\ xxx/clang"
-- @param argv the arguments
--- @param opt the option, .e.g {wildcards = false, stdout = outfile, stderr = errfile}
+-- @param opt the options, .e.g {wildcards = false, stdout = outfile, stderr = errfile, envs = {"PATH=xxx;xx", "CFLAGS=xx"}}
--
function os.execv(program, argv, opt)
@@ -609,7 +609,7 @@ function os.execv(program, argv, opt)
-- open command
local ok = -1
- local proc = process.openv(filename, argv, opt.stdout, opt.stderr)
+ local proc = process.openv(filename, argv, opt.stdout, opt.stderr, opt.envs)
if proc ~= nil then
-- wait process