[llvm] 7f9b068 - [PowerPC][lit] Recognize triple ppc64le.*-linux
Tulio Magno Quites Machado Filho via llvm-commits
llvm-commits at lists.llvm.org
Fri May 19 09:30:40 PDT 2023
Author: Tulio Magno Quites Machado Filho
Date: 2023-05-19T13:28:18-03:00
New Revision: 7f9b0685061a34e67dc2f50c61ccce6bd17c6c57
URL: https://github.com/llvm/llvm-project/commit/7f9b0685061a34e67dc2f50c61ccce6bd17c6c57
DIFF: https://github.com/llvm/llvm-project/commit/7f9b0685061a34e67dc2f50c61ccce6bd17c6c57.diff
LOG: [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
Added:
Modified:
llvm/utils/lit/lit/llvm/config.py
Removed:
################################################################################
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index 619db4e369404..26f86ed089113 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -147,6 +147,8 @@ def __init__(self, lit_config, config):
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):
More information about the llvm-commits
mailing list