Skip to content

Commit 69e0b82

Browse files
authored
Fix compile error C2226 in non English locale (#1944)
Fix compile error C2226 in non English locale see: llvm/llvm-project#60549
1 parent e093f71 commit 69e0b82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/llvm/LLVM.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ function cmake(gen, conf, builddir, options)
251251

252252
if os.ishost("windows") then
253253
options = options .. " -Thost=x64"
254+
-- add flag to fix compile error C2226 in non English locales
255+
-- see: https://github.com/llvm/llvm-project/issues/60549
256+
options = options .. ' -DCMAKE_CXX_FLAGS="/utf-8"'
254257
end
255258

256259
local cmd = cmake .. " -G " .. '"' .. gen .. '"'

0 commit comments

Comments
 (0)