Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 18, 2024
1 parent 4278625 commit c9fc5cf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions xmake/core/base/os.lua
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,14 @@ function os.execv(program, argv, opt)
local addenvs = opt.addenvs
if setenvs or addenvs then
local envars = os.getenvs()
if program:find("MinExample") then
print("curenvs")
utils.dump(envars)
print("setenvs")
utils.dump(setenvs)
print("addenvs")
utils.dump(addenvs)
end
if setenvs then
for k, v in pairs(setenvs) do
if type(v) == "table" then
Expand Down Expand Up @@ -866,6 +874,12 @@ function os.execv(program, argv, opt)
for k, v in pairs(envars) do
table.insert(envs, k .. '=' .. v)
end
if program:find("MinExample") then
print("os.execv envars")
utils.dump(envars)
print("os.execv envs")
utils.dump(envs)
end
end

-- init open options
Expand Down

0 comments on commit c9fc5cf

Please sign in to comment.