Skip to content

Commit

Permalink
Workaround build errors with VS2019.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Sep 29, 2023
1 parent df26f36 commit 28b11d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/llvm/LLVM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ function cmake(gen, conf, builddir, options)

if os.ishost("windows") then
options = options .. " -Thost=x64"

-- Workaround build failure due to bugs in older Windows SDK headers
local vsver = get_vs_version()
if vsver == "vs2019" then
options = options .. ' -DCMAKE_SYSTEM_VERSION=10.0.19041.0'
end
end

local cmd = cmake .. " -G " .. '"' .. gen .. '"'
Expand Down

0 comments on commit 28b11d0

Please sign in to comment.