https://github.com/augusto2112 created https://github.com/llvm/llvm-project/pull/216397
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. >From e16b6968d879770b72add23f5799fdcedee38fbf 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/packages/Python/lldbsuite/test/lldbarm64e.py b/lldb/packages/Python/lldbsuite/test/lldbarm64e.py index a16ea85f8bfcd..f6c8f5b962670 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbarm64e.py +++ b/lldb/packages/Python/lldbsuite/test/lldbarm64e.py @@ -6,6 +6,8 @@ @skipUnlessArm64eSupported class Arm64eTestBase(TestBase): def build(self): + triple = configuration.triple.replace("arm64-", "arm64e-") super().build( - dictionary={"TRIPLE": configuration.triple.replace("arm64-", "arm64e-")} + dictionary={"TRIPLE": triple, "ARCH_CFLAGS": "-target " + triple} ) + _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
