================ @@ -2333,3 +2334,4 @@ LogicalResult PDLByteCode::rewrite(PatternRewriter &rewriter, } return result; } +#endif // MLIR_ENABLE_PDL ---------------- joker-eph wrote: I think we can avoid the macros here by handling this as a library in cmake. https://github.com/llvm/llvm-project/pull/69927