Closed Bug 1999204 Opened 2 months ago Closed 2 months ago

nss: use optimized ARM64 crypto on Mac

Categories

(NSS :: Build, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: leggert, Assigned: leggert)

References

Details

Attachments

(2 files)

By providing the correct flag overrides. Should speed up some crypto operations considerably.

See https://github.com/Homebrew/homebrew-core/pull/252466

Assignee: nobody → leggert

I needed to use -arch arm64 to get this work with Clang 17 on an M4 mac. What compiler did you test it with?

Homebrew clang version 21.1.5
Target: arm64-apple-darwin25.1.0
Thread model: posix
InstalledDir: /Volumes/mozdrone/opt/homebrew/Cellar/llvm/21.1.5/bin
Configuration file: /Volumes/mozdrone/opt/homebrew/etc/clang/arm64-apple-darwin25.cfg
System configuration file directory: /Volumes/mozdrone/opt/homebrew/etc/clang
User configuration file directory: /Users/lars/.config/clang

But it works with the Apple clang for me as well.

I can't get it to work with -arch aarch64 with Apple clang or Homebrew clang. Compiler explorer also gives me an error: https://godbolt.org/z/MdxazzbTe

Maybe you're not building anything? Does it work after a make clean?

Duplicate of this bug: 1952518

I did HOMEBREW_NO_INSTALL_FROM_API=1 brew reinstall --build-from-source nss -v, which works fine with -arch aarch64. But when I try to do make nss_build_all, neither -arch aarch64 nor -arch arm64 succeed.

Pushed by jschanck@mozilla.com:
https://hg.mozilla.org/projects/nss/rev/a3c02501406e
fix CPU_ARCH setting for arm64 makefile builds. r=rrelyea

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Regressions: 2004866
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: