diff --git a/build/llvm/LLVM.lua b/build/llvm/LLVM.lua index 77560cec..73bd40e8 100644 --- a/build/llvm/LLVM.lua +++ b/build/llvm/LLVM.lua @@ -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 .. '"'