summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/toolchains/msvc/check.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/toolchains/msvc/check.lua b/xmake/toolchains/msvc/check.lua
index ce3fdd8d9..b7d81a0e9 100644
--- a/xmake/toolchains/msvc/check.lua
+++ b/xmake/toolchains/msvc/check.lua
@@ -29,6 +29,9 @@ function _check_vsenv(toolchain)
-- have been checked?
local vs = toolchain:config("vs") or config.get("vs")
+ if vs then
+ vs = tostring(vs)
+ end
local vcvars = toolchain:config("vcvars")
if vs and vcvars then
return vs