Skip to content

Commit b2ea046

Browse files
authored
[MLIR] Add missing omp_gen dep to MLIROpenMPDialect (#84552)
This fixes the following failure when doing a clean build (in particular no .ninja* lying around) of lib/libMLIROpenMPDialect.a only: ``` In file included from mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp:29: llvm/include/llvm/Frontend/OpenMP/OMPConstants.h:20:10: fatal error: llvm/Frontend/OpenMP/OMP.h.inc: No such file or directory ```
1 parent 36cf982 commit b2ea046

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Dialect/OpenMP/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ add_mlir_dialect_library(MLIROpenMPDialect
55
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/OpenMP
66

77
DEPENDS
8+
omp_gen
89
MLIROpenMPOpsIncGen
910
MLIROpenMPOpsInterfacesIncGen
1011
MLIROpenMPTypeInterfacesIncGen

0 commit comments

Comments
 (0)