Debian Codegraph @

clang/lib/CIR/CMakeLists.txt

raw
1 include_directories(${LLVM_MAIN_SRC_DIR}/../mlir/include)
2 include_directories(${CMAKE_BINARY_DIR}/tools/mlir/include)
3
4 # GCC, unlike clang, issues a warning when one virtual function is overridden
5 # in a derived class but one or more other virtual functions with the same
6 # name and different signature from a base class are not overridden. This
7 # leads to many warnings in the MLIR and ClangIR code when using the
8 # OpenConversionPattern<>::matchAndRewrite() function in the ordinary way.
9 # The "hiding" behavior is what we want, so we're just disabling the warning
10 # here.
11 if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND (NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang"))
12 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual")
13 endif()
14
15 add_subdirectory(Dialect)
16 add_subdirectory(CodeGen)
17 add_subdirectory(FrontendAction)
18 add_subdirectory(Interfaces)
19 add_subdirectory(Lowering)