Skip to content

Commit

Permalink
assert
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Jun 28, 2024
1 parent 0231d14 commit 013167d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/env/msvc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ end

local function find_toolset()
local verfile = installpath().."/VC/Auxiliary/Build/Microsoft.VCToolsVersion.default.txt"
local r = readall(verfile)
return strtrim(r)
local raw = readall(verfile)
local res = strtrim(raw)
assert(res, ("`%s` parse failed."):format(raw))
return res
end

local function vsdevcmd(arch, winsdk, toolset, f)
Expand Down

0 comments on commit 013167d

Please sign in to comment.