Skip to content

[lldb] fix arm64e tests not compiling with an arm64e target - #13847

Open
charles-zablit wants to merge 1 commit into
swiftlang:stable/23.xfrom
charles-zablit:cz/lldb/fix-ptrauth-arch-cflags
Open

[lldb] fix arm64e tests not compiling with an arm64e target#13847
charles-zablit wants to merge 1 commit into
swiftlang:stable/23.xfrom
charles-zablit:cz/lldb/fix-ptrauth-arch-cflags

Conversation

@charles-zablit

@charles-zablit charles-zablit commented Aug 14, 2026

Copy link
Copy Markdown

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.

Fixes:

  • lldb/test/API/commands/expression/ptrauth/TestPtrAuthExpressions.py
  • lldb/test/API/commands/expression/ptrauth-auth-traps/TestPtrAuthAuthTraps.py
  • lldb/test/API/commands/expression/ptrauth-vtable/TestPtrAuthVTableExpressions.py
  • lldb/test/API/commands/expression/ptrauth-weak-symbols/TestPtrauthWeakSymbols.py
  • lldb/test/API/commands/expression/ptrauth-objc/TestPtrAuthObjectiveC.py

@charles-zablit
charles-zablit force-pushed the cz/lldb/fix-ptrauth-arch-cflags branch from 9774515 to a174c56 Compare August 14, 2026 11:03

@adrian-prantl adrian-prantl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change also needs to be made on llvm.org and then cherry-picked here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants