Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 16, 2024
1 parent cd0a29b commit 54d8b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/package/tools/cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ end
-- get msvc
function _get_msvc(package)
local msvc = package:toolchain("msvc")
print("msvc", msvc:name())
print("msvc", tostring(msvc), msvc:name(), msvc:get("runenvs"))
assert(msvc:check(), "vs not found!") -- we need to check vs envs if it has been not checked yet
return msvc
end
Expand Down
1 change: 1 addition & 0 deletions xmake/toolchains/msvc/load.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function _add_vsenv(toolchain, name, curenvs)
break
end
end
print("add runenvs", tostring(toolchain), name)
toolchain:add("runenvs", name, table.unwrap(path.splitenv(new)))
end
end
Expand Down

0 comments on commit 54d8b63

Please sign in to comment.