Skip to content

Commit 9f71e6b

Browse files
committed
Use long-string-literals with MSVC for other subprojects (clang/mlir/etc)
1 parent 1761ecd commit 9f71e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/TableGen.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function(tablegen project ofn)
6868
# char literals, instead. If we're cross-compiling, then conservatively assume
6969
# that the source might be consumed by MSVC.
7070
# [1] https://docs.microsoft.com/en-us/cpp/cpp/compiler-limits?view=vs-2017
71-
if (MSVC AND project STREQUAL LLVM)
71+
if (MSVC)
7272
list(APPEND LLVM_TABLEGEN_FLAGS "--long-string-literals=0")
7373
endif()
7474
if (CMAKE_GENERATOR MATCHES "Visual Studio")

0 commit comments

Comments
 (0)