File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ macro(swift_common_unified_build_config product)
203
203
set (${product} _NATIVE_LLVM_TOOLS_PATH "${CMAKE_BINARY_DIR} /bin" )
204
204
set (${product} _NATIVE_CLANG_TOOLS_PATH "${CMAKE_BINARY_DIR} /bin" )
205
205
set (LLVM_PACKAGE_VERSION ${PACKAGE_VERSION} )
206
+ set (SWIFT_TABLEGEN_EXE llvm-tblgen )
206
207
207
208
# If cmark was checked out into tools/cmark, expect to build it as
208
209
# part of the unified build.
@@ -228,6 +229,8 @@ macro(swift_common_unified_build_config product)
228
229
"${CMARK_MAIN_INCLUDE_DIR} "
229
230
"${CMARK_BUILD_INCLUDE_DIR} " )
230
231
232
+ include (AddSwiftTableGen ) # This imports TableGen from LLVM.
233
+
231
234
check_cxx_compiler_flag ("-Werror -Wnested-anon-types" CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG )
232
235
if (CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG )
233
236
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nested-anon-types" )
You can’t perform that action at this time.
0 commit comments