[MLIR] Only substitute `mlir-spirv-cpu-runner` tool if enabled
authorChristian Sigg <csigg@google.com>
Tue, 13 Sep 2022 07:32:54 +0000 (09:32 +0200)
committerChristian Sigg <csigg@google.com>
Tue, 13 Sep 2022 13:42:14 +0000 (15:42 +0200)
commit5c6d8a74e1b090f37cf3ddb13be86ac1dcb4beac
treeb4e3058a956719adfcc082517b14711930e6ad1d
parent843d074400fe9868329e870d6423728333cc7e1a
[MLIR] Only substitute `mlir-spirv-cpu-runner` tool if enabled

This tool is only used if `MLIR_ENABLE_SPIRV_CPU_RUNNER` was specified and should only be substituted in that case. Alternatively, we could make the substitution optional.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D133752
mlir/test/lit.cfg.py