mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 12:15:46 +00:00
ca98e0dd6c
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
17 lines
431 B
INI
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')
|