nss: use optimized ARM64 crypto on Mac
Categories
(NSS :: Build, enhancement)
Tracking
(Not tracked)
People
(Reporter: leggert, Assigned: leggert)
References
Details
Attachments
(2 files)
|
404 bytes,
patch
|
Details | Diff | Splinter Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
By providing the correct flag overrides. Should speed up some crypto operations considerably.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Comment 2•2 months ago
|
||
I needed to use -arch arm64 to get this work with Clang 17 on an M4 mac. What compiler did you test it with?
| Assignee | ||
Comment 3•2 months ago
|
||
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.
Comment 4•2 months ago
|
||
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?
Comment 6•2 months ago
|
||
| Assignee | ||
Comment 7•2 months ago
|
||
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
Description
•