Skip to content

Commit 4f2a00b

Browse files
marbreTensorFlow MLIR Team
authored and
TensorFlow MLIR Team
committed
PR #57157: Don't set MLIR_PDLL_TABLEGEN_EXE
Imported from GitHub PR tensorflow/tensorflow#57157 With llvm/llvm-project@91b6f76 landed, external projects no longer need to set `MLIR_PDLL_TABLEGEN_EXE`. The variable is now set as a cache variable in MLIR upstream. Setting it in an external project breaks cross-compilation. This patch is similar to 77bd8ec. Copybara import of the project: -- 54ae3dfd45fe47751e1400385377074d0ce7c0fe by Marius Brehler <[email protected]>: Don't set MLIR_PDLL_TABLEGEN_EXE With llvm/llvm-project@91b6f76 landed, external projects no longer need to set `MLIR_PDLL_TABLEGEN_EXE`. The variable is now set as a cache variable in MLIR upstream. Setting it in an external project breaks cross-compilation. This patch is similar to 77bd8ec. Merging this change closes #57157 PiperOrigin-RevId: 467945431
1 parent 454bfe0 commit 4f2a00b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ if(MHLO_EXTERNAL_PROJECT_BUILD)
9595
set(MLIR_MAIN_SRC_DIR ${LLVM_MAIN_SRC_DIR}/../mlir ) # --src-root
9696
set(MLIR_INCLUDE_DIR ${MLIR_MAIN_SRC_DIR}/include ) # --includedir
9797
set(MLIR_GENERATED_INCLUDE_DIR ${LLVM_BINARY_DIR}/tools/mlir/include)
98-
set(MLIR_PDLL_TABLEGEN_EXE $<TARGET_FILE:mlir-pdll>)
9998
include_directories(SYSTEM ${MLIR_INCLUDE_DIR})
10099
include_directories(SYSTEM ${MLIR_GENERATED_INCLUDE_DIR})
101100
include_directories(SYSTEM ${MLIR_TABLEGEN_OUTPUT_DIR})

0 commit comments

Comments
 (0)