Fix `check-mlir` target when the host target isn't configured
authorMehdi Amini <joker.eph@gmail.com>
Fri, 19 Jun 2020 03:21:36 +0000 (03:21 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 19 Jun 2020 06:36:20 +0000 (06:36 +0000)
commitbc14c77a1e8818ed8647e5bc92e3cd38f27fda41
treef39717a4b1d8e170aee3005f8ced9ee78331c6c0
parent59f45a1cdb361b2a6f6e75fad6d3055a1b7f9602
Fix `check-mlir` target when the host target isn't configured

This patch adds the `default_triple` feature to MLIR test suite.
This feature was added to LLVM in d178f4fc8 in order to be able to
run the LLVM tests without having the host targets configured in.
With this change, `ninja check-mlir` passes without the host
target, i.e. this config:

  cmake ../llvm -DLLVM_TARGETS_TO_BUILD="" -DLLVM_DEFAULT_TARGET_TRIPLE="" -DLLVM_ENABLE_PROJECTS=mlir -GNinja

Differential Revision: https://reviews.llvm.org/D82142
mlir/test/lit.cfg.py
mlir/test/mlir-cpu-runner/lit.local.cfg