brintos

brintos / llvm-project-archived public Read only

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