llvm-capstone/mlir/test/mlir-cpu-runner/lit.local.cfg
Rainer Orth ca98e0dd6c [mlir][test] Require JIT support in JIT tests
A number of mlir tests `FAIL` on Solaris/sparcv9 with `Target has no JIT
support`.  This patch fixes that by mimicing `clang/test/lit.cfg.py` which
implements a `host-supports-jit` keyword for this.  The gtest-based unit
tests don't support `REQUIRES:`, so lack of support needs to be hardcoded
there.

Tested on `amd64-pc-solaris2.11` (`check-mlir` results unchanged) and
`sparcv9-sun-solaris2.11` (only one unrelated failure left).

Differential Revision: https://reviews.llvm.org/D131151
2022-08-18 11:26:07 +02:00

17 lines
431 B
INI

import sys
# FIXME: llvm orc does not support the COFF rtld.
if sys.platform == 'win32':
config.unsupported = True
# MSAN does not work with JIT.
if 'msan' in config.available_features:
config.unsupported = True
# Requires native execution.
if 'host-supports-jit' not in config.available_features:
config.unsupported = True
config.available_features.add(
config.root.native_target.lower() + '-native-target')