forked from OSchip/llvm-project
[mlir] Fix sporadic build failures due to missing dependency
The build of MLIR occasionally fails (especially on Windows) because there is missing dependency between MLIRLLVMIR and MLIROpenMPOpsIncGen. 1) LLVMDialect.cpp includes LLVMDialect.h 2) LLVMDialect.h includes OpenMPDialect.h 3) OpenMPDialect.h includes OpenMPOpsDialect.h.inc, OpenMPOpsEnums.h.inc and OpenMPOps.h.inc The OpenMP .inc files are generated by MLIROpenMPOpsIncGen, so MLIRLLVMIR which builds LLVMDialect.cpp should depend on MLIROpenMPOpsIncGen Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D89275
This commit is contained in:
parent
6121117484
commit
0c15a1b4bc
|
@ -11,6 +11,7 @@ add_mlir_dialect_library(MLIRLLVMIR
|
|||
DEPENDS
|
||||
MLIRLLVMOpsIncGen
|
||||
MLIRLLVMConversionsIncGen
|
||||
MLIROpenMPOpsIncGen
|
||||
intrinsics_gen
|
||||
|
||||
LINK_COMPONENTS
|
||||
|
|
Loading…
Reference in New Issue