diff --git a/mlir/test/Unit/lit.cfg.py b/mlir/test/Unit/lit.cfg.py index d645971074f54..7cde5003bc07c 100644 --- a/mlir/test/Unit/lit.cfg.py +++ b/mlir/test/Unit/lit.cfg.py @@ -37,3 +37,7 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']: if symbolizer in os.environ: config.environment[symbolizer] = os.environ[symbolizer] + +# FIXME: PPC needs to be switched to use the large code model +if 'powerpc' in config.host_triple: + config.unsupported = True diff --git a/mlir/test/Unit/lit.site.cfg.py.in b/mlir/test/Unit/lit.site.cfg.py.in index 5ad2f7dda8c25..813a8e297275d 100644 --- a/mlir/test/Unit/lit.site.cfg.py.in +++ b/mlir/test/Unit/lit.site.cfg.py.in @@ -11,6 +11,7 @@ config.shlibdir = "@SHLIBDIR@" config.mlir_src_root = "@MLIR_SOURCE_DIR@" config.mlir_obj_root = "@MLIR_BINARY_DIR@" config.mlir_tools_dir = "@MLIR_TOOLS_DIR@" +config.host_triple = "@LLVM_HOST_TRIPLE@" # Support substitution of the tools_dir and build_mode with user parameters. # This is used when we can't determine the tool dir at configuration time. diff --git a/mlir/test/mlir-cpu-runner/lit.local.cfg b/mlir/test/mlir-cpu-runner/lit.local.cfg index 012da916f226b..2bf36f7688185 100644 --- a/mlir/test/mlir-cpu-runner/lit.local.cfg +++ b/mlir/test/mlir-cpu-runner/lit.local.cfg @@ -4,6 +4,10 @@ import sys if sys.platform == 'win32': config.unsupported = True +# FIXME: PPC needs to be switched to use the large code model +if 'powerpc' in config.host_triple: + config.unsupported = True + # Requires a non-empty default triple for these tests. # Passing ` -DLLVM_DEFAULT_TARGET_TRIPLE="" ` when the # host target isn't available is how LLVM filters