https://github.com/augusto2112 updated 
https://github.com/llvm/llvm-project/pull/216397

>From 268a8c50500f668ce357c4b4d05fe25a28265b98 Mon Sep 17 00:00:00 2001
From: Augusto Noronha <[email protected]>
Date: Fri, 14 Aug 2026 13:46:49 -0700
Subject: [PATCH] [lldb] fix arm64e tests not compiling with an arm64e target

Arm64eTestBase.build() only overrode TRIPLE, but ARCH_CFLAGS is a Make 
command-line variable set separately by the test harness to a non-arm64e flag. 
A plain in-Makefile assignment can't override a command-line variable, so the 
compiler silently fell back to the host's default (non-arm64e) triple and 
__ptrauth attributes failed to compile. Now overrides ARCH_CFLAGS too.
---
 lldb/packages/Python/lldbsuite/test/lldbarm64e.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lldb/packages/Python/lldbsuite/test/lldbarm64e.py 
b/lldb/packages/Python/lldbsuite/test/lldbarm64e.py
index a16ea85f8bfcd..cf9b027688ff4 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbarm64e.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbarm64e.py
@@ -6,6 +6,6 @@
 @skipUnlessArm64eSupported
 class Arm64eTestBase(TestBase):
     def build(self):
-        super().build(
-            dictionary={"TRIPLE": configuration.triple.replace("arm64-", 
"arm64e-")}
-        )
+        triple = configuration.triple.replace("arm64-", "arm64e-")
+        super().build(dictionary={"TRIPLE": triple, "ARCH_CFLAGS": "-target " 
+ triple})
+

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to