From 7f9b0685061a34e67dc2f50c61ccce6bd17c6c57 Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Fri, 19 May 2023 12:15:00 -0300 Subject: [PATCH] [PowerPC][lit] Recognize triple ppc64le.*-linux Some Linux distributions, e.g. Red Hat, use the triple ppc64le-redhat-linux. Add a pattern that treats ppc64le.*-linux as powerpc64le-linux during test execution. Reviewed By: qiucf Differential Revision: https://reviews.llvm.org/D149746 --- llvm/utils/lit/lit/llvm/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py index 619db4e..26f86ed 100644 --- a/llvm/utils/lit/lit/llvm/config.py +++ b/llvm/utils/lit/lit/llvm/config.py @@ -147,6 +147,8 @@ class LLVMConfig(object): features.add("target-aarch64") elif re.match(r"^arm.*", target_triple): features.add("target-arm") + if re.match(r'^ppc64le.*-linux', target_triple): + features.add('target=powerpc64le-linux') use_gmalloc = lit_config.params.get("use_gmalloc", None) if lit.util.pythonize_bool(use_gmalloc): -- 2.7.4