This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG4d81c8adb6ed: [llvm] CMake: Force MSVC to read code as UTF-8 (authored by kbobyrev).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90116/new/ https://reviews.llvm.org/D90116 Files: llvm/CMakeLists.txt Index: llvm/CMakeLists.txt =================================================================== --- llvm/CMakeLists.txt +++ llvm/CMakeLists.txt @@ -599,6 +599,8 @@ if (BUILD_SHARED_LIBS) message(FATAL_ERROR "BUILD_SHARED_LIBS options is not supported on Windows.") endif() + # Force MSVC to read code as UTF-8. + add_compile_options(/utf-8) else() option(LLVM_LINK_LLVM_DYLIB "Link tools against the libllvm dynamic library" OFF) option(LLVM_BUILD_LLVM_C_DYLIB "Build libllvm-c re-export library (Darwin only)" OFF)
Index: llvm/CMakeLists.txt =================================================================== --- llvm/CMakeLists.txt +++ llvm/CMakeLists.txt @@ -599,6 +599,8 @@ if (BUILD_SHARED_LIBS) message(FATAL_ERROR "BUILD_SHARED_LIBS options is not supported on Windows.") endif() + # Force MSVC to read code as UTF-8. + add_compile_options(/utf-8) else() option(LLVM_LINK_LLVM_DYLIB "Link tools against the libllvm dynamic library" OFF) option(LLVM_BUILD_LLVM_C_DYLIB "Build libllvm-c re-export library (Darwin only)" OFF)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits