forked from OSchip/llvm-project
Update cmake files.
Use MLIR_MAIN_SRC_DIR that also works if MLIR is not checked out in projects directory & simplify dir for EDSC test. PiperOrigin-RevId: 259664306
This commit is contained in:
parent
8cb82c9478
commit
e8bd81ba1a
|
@ -1,5 +1,5 @@
|
|||
# MLIR project.
|
||||
set(MLIR_MAIN_SRC_DIR ${LLVM_MAIN_SRC_DIR}/projects/mlir/include ) # --src-root
|
||||
set(MLIR_MAIN_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include ) # --src-root
|
||||
set(MLIR_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/include ) # --includedir
|
||||
set(MLIR_TABLEGEN_EXE mlir-tblgen)
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
set(LLVM_TARGET_DEFINITIONS "${MLIR_MAIN_SRC_DIR}/../test/mlir-tblgen/reference-impl.td")
|
||||
set(LLVM_TARGET_DEFINITIONS "${MLIR_SOURCE_DIR}/test/mlir-tblgen/reference-impl.td")
|
||||
mlir_tablegen("reference-impl.inc" -gen-reference-implementations)
|
||||
add_public_tablegen_target(MLIRReferenceImplementationTestGen)
|
||||
|
|
Loading…
Reference in New Issue