Skip to content

Commit 110c18d

Browse files
committed
Fix for mlir-src-sharder
1 parent 2fdde27 commit 110c18d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/cmake/modules/TableGen.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ 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)
71+
# Don't pass this flag to mlir-src-sharder, since it doesn't support the
72+
# flag, and it doesn't need it.
73+
if (MSVC AND NOT "${project}" STREQUAL "MLIR_SRC_SHARDER")
7274
list(APPEND LLVM_TABLEGEN_FLAGS "--long-string-literals=0")
7375
endif()
7476
if (CMAKE_GENERATOR MATCHES "Visual Studio")

0 commit comments

Comments
 (0)