Fix running MLIR tests when enabling examples but the native backends isn't configured (NFC)

This commit is contained in:
Mehdi Amini 2023-01-24 20:32:20 -08:00
parent 9b70a28e0d
commit 177a0e5916
3 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,9 @@
# This chapter depends on JIT support enabled.
if(NOT MLIR_ENABLE_EXECUTION_ENGINE)
return()
endif()
# For a better template to copy, see examples/standalone
include_directories(include)
add_subdirectory(include)

View File

@ -1,3 +1,8 @@
# This chapter depends on JIT support enabled.
if(NOT MLIR_ENABLE_EXECUTION_ENGINE)
return()
endif()
# For a better template to copy, see examples/standalone
include_directories(include)
add_subdirectory(include)

View File

@ -121,9 +121,13 @@ if(LLVM_BUILD_EXAMPLES)
toyc-ch3
toyc-ch4
toyc-ch5
toyc-ch6
toyc-ch7
)
if(MLIR_ENABLE_EXECUTION_ENGINE)
list(APPEND MLIR_TEST_DEPENDS
toyc-ch6
toyc-ch7
)
endif()
endif()
if(MLIR_ENABLE_SPIRV_CPU_RUNNER)