Browse Source

Fix compile error C2226 in non English locale (#1944)

Fix compile error C2226 in non English locale
see: https://github.com/llvm/llvm-project/issues/60549
main
zhaojunmeng 2 months ago committed by GitHub
parent
commit
69e0b82d01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      build/llvm/LLVM.lua

3
build/llvm/LLVM.lua

@ -251,6 +251,9 @@ function cmake(gen, conf, builddir, options) @@ -251,6 +251,9 @@ function cmake(gen, conf, builddir, options)
if os.ishost("windows") then
options = options .. " -Thost=x64"
-- add flag to fix compile error C2226 in non English locales
-- see: https://github.com/llvm/llvm-project/issues/60549
options = options .. ' -DCMAKE_CXX_FLAGS="/utf-8"'
end
local cmd = cmake .. " -G " .. '"' .. gen .. '"'

Loading…
Cancel
Save