From 54d8b631fe60d0f6bc75e03f136e931fc864c5ae Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 17 Apr 2024 00:49:42 +0800 Subject: [PATCH] ... --- xmake/modules/package/tools/cmake.lua | 2 +- xmake/toolchains/msvc/load.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 92d835ff256..9a5d9ee8fd1 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -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 diff --git a/xmake/toolchains/msvc/load.lua b/xmake/toolchains/msvc/load.lua index eaec6af797b..4fa30e1bbe7 100644 --- a/xmake/toolchains/msvc/load.lua +++ b/xmake/toolchains/msvc/load.lua @@ -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