diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ce7c6d..3e503f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,7 @@ endif() option(GAP_ENABLE_MLIR "Enable MLIR support" OFF) if (${GAP_ENABLE_MLIR}) + find_package(LLVM REQUIRED CONFIG) find_package(MLIR REQUIRED CONFIG) list(APPEND CMAKE_MODULE_PATH "${MLIR_CMAKE_DIR}") include(AddMLIR) diff --git a/core/include/gap/core/dense_map.hpp b/core/include/gap/core/dense_map.hpp index e7f8a98..218a411 100644 --- a/core/include/gap/core/dense_map.hpp +++ b/core/include/gap/core/dense_map.hpp @@ -3,6 +3,7 @@ #pragma once #include +#include #include #include diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index ba60f84..40d8227 100644 --- a/mlir/CMakeLists.txt +++ b/mlir/CMakeLists.txt @@ -15,6 +15,7 @@ add_gap_static_library(gap-mlir "${GAP_MLIR_SOURCES}" SYSTEM_INCLUDE_DIRECTORIES "${MLIR_INCLUDE_DIRS}" + "${LLVM_INCLUDE_DIRS}" LINK_LIBRARIES MLIRIR MLIRSupport diff --git a/test/coro/recursive_generator.cpp b/test/coro/recursive_generator.cpp index 8e1795c..2fbbfe3 100644 --- a/test/coro/recursive_generator.cpp +++ b/test/coro/recursive_generator.cpp @@ -11,8 +11,9 @@ #ifdef GAP_ENABLE_COROUTINES - #include - #include +#include +#include +#include namespace gap::test {