[compiler-rt] [compiler-rt] [test] Don't apply the "arm" or "armhf" patterns for targets starting with "arm64" (PR #141226)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Fri May 23 04:30:56 PDT 2025


https://github.com/mstorsjo created https://github.com/llvm/llvm-project/pull/141226

This fixes finding the builtins library for arm64ec.

This matches a corresponding condition added in cmake in 3764ba23484afda683eea390407103e609ef4354.

>From c31658d0d7001007d1ad935a4e82475e6f3f900e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin at martin.st>
Date: Fri, 23 May 2025 12:35:46 +0300
Subject: [PATCH] [compiler-rt] [test] Don't apply the "arm" or "armhf"
 patterns for targets starting with "arm64"

This fixes finding the builtins library for arm64ec.

This matches a corresponding condition added in cmake in
3764ba23484afda683eea390407103e609ef4354.
---
 compiler-rt/test/lit.common.configured.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/test/lit.common.configured.in b/compiler-rt/test/lit.common.configured.in
index f673a13be9cba..04d1a4df5a54f 100644
--- a/compiler-rt/test/lit.common.configured.in
+++ b/compiler-rt/test/lit.common.configured.in
@@ -69,7 +69,7 @@ elif config.android:
   else:
     set_default("target_suffix", "-%s-android" % config.target_arch)
 else:
-  if config.target_arch.startswith("arm"):
+  if config.target_arch.startswith("arm") and not config.target_arch.startswith("arm64"):
     if config.target_arch.endswith("hf"):
       set_default("target_suffix", "-armhf")
     else:



More information about the llvm-commits mailing list