Skip to content

Build arm64 with clang to enable AES hardware acceleration - #239

Merged
penberg merged 1 commit into
tursodatabase:mainfrom
albertxing:axg/arm-aes
Sep 29, 2026
Merged

penberg merged 1 commit into
tursodatabase:mainfrom
albertxing:axg/arm-aes

Conversation

@albertxing

Copy link
Copy Markdown
Contributor

The current arm64 binary isn't compiled with AES hardware acceleration, because Multiple Ciphers doesn't include ARM AES hardware detection logic when using gcc. It does include that logic when compiling with clang, so switching to clang should enable hardware acceleration support.

I've tested this with a local cross-compiled build by inspecting the built binary's instructions.

Some alternatives are:

  • targeting arm64 with crypto extensions (-march=armv8-a+crypto)
  • patching multiple ciphers to enable AES detection under gcc

@albertxing
albertxing marked this pull request as ready for review September 29, 2026 00:00
@penberg penberg changed the title fix: build arm64 with clang to enable AES hardware acceleration Build arm64 with clang to enable AES hardware acceleration Sep 29, 2026
@penberg
penberg merged commit 0576c84 into tursodatabase:main Sep 29, 2026
13 checks passed
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