We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fdde27 commit 110c18dCopy full SHA for 110c18d
llvm/cmake/modules/TableGen.cmake
@@ -68,7 +68,9 @@ function(tablegen project ofn)
68
# char literals, instead. If we're cross-compiling, then conservatively assume
69
# that the source might be consumed by MSVC.
70
# [1] https://docs.microsoft.com/en-us/cpp/cpp/compiler-limits?view=vs-2017
71
- if (MSVC)
+ # 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")
74
list(APPEND LLVM_TABLEGEN_FLAGS "--long-string-literals=0")
75
endif()
76
if (CMAKE_GENERATOR MATCHES "Visual Studio")
0 commit comments