[Mlir-commits] [mlir] b2ea046 - [MLIR] Add missing omp_gen dep to MLIROpenMPDialect (#84552)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Mar 11 16:10:30 PDT 2024
Author: Thomas Preud'homme
Date: 2024-03-11T23:10:26Z
New Revision: b2ea04673b782f95ac9841f87df8bb5f7b561067
URL: https://github.com/llvm/llvm-project/commit/b2ea04673b782f95ac9841f87df8bb5f7b561067
DIFF: https://github.com/llvm/llvm-project/commit/b2ea04673b782f95ac9841f87df8bb5f7b561067.diff
LOG: [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
```
Added:
Modified:
mlir/lib/Dialect/OpenMP/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/OpenMP/CMakeLists.txt b/mlir/lib/Dialect/OpenMP/CMakeLists.txt
index 40b4837484a136..57a6d3445c151c 100644
--- a/mlir/lib/Dialect/OpenMP/CMakeLists.txt
+++ b/mlir/lib/Dialect/OpenMP/CMakeLists.txt
@@ -5,6 +5,7 @@ add_mlir_dialect_library(MLIROpenMPDialect
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/OpenMP
DEPENDS
+ omp_gen
MLIROpenMPOpsIncGen
MLIROpenMPOpsInterfacesIncGen
MLIROpenMPTypeInterfacesIncGen
More information about the Mlir-commits
mailing list