[mlir] Only build mlir-cpu-runner when the native arch is targeted
authorStella Stamenova <stilis@microsoft.com>
Fri, 28 Jan 2022 18:09:09 +0000 (10:09 -0800)
committerStella Stamenova <stilis@microsoft.com>
Fri, 28 Jan 2022 18:09:09 +0000 (10:09 -0800)
commitc0861fcbb90115e47a0fdef7c0cb346b0ef39cf5
treeabcd7755d27b4ea0298e1bee42dfd3431e115f94
parenta41c8b8fd5ade12b8f055634ab9faf69c7ba6765
[mlir] Only build mlir-cpu-runner when the native arch is targeted

mlir-cpu-runner has a dependency on ExecutionEngine which is only built for the native arch. So currently mlir-cpu-runner does not link correctly when the native arch is not targeted.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D118422
mlir/tools/CMakeLists.txt