summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2022-02-14 23:56:11 +0800
committerxq114 <[email protected]>2022-02-14 23:56:11 +0800
commit15dba52da8585191d3e41a50b560810ac083364e (patch)
treee0dcc16467ac4a02f33fd656c29856bd97ebc538
parent835d889cfcf7f0335b1822f96705ceede47032d7 (diff)
accept numbers as vs toolchain config
-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