Besides ARM and AMD64, what other arch do you need to support? RISC-V?
I'm using MacPorts and I have no idea how to hand compile just libgccjit there. The libgcc port doesn't even produce the jit language.
I think you want to do
port install emacs-devel +nativecomp
or port install emacs-app-devel +nativecomp
Re:Bringing GNU Emacs to Native Code (2020)
by jonnycomputer on Sunday May 02, 2021 @09:38AM
(#27015188)
I did this last night. It failed to compile. OSX 10.14. Frustratingly.
I'm on macOS 11.2.3 (20D91) and it worked fine, though it took a while to compile since there were no binaries.
You may try to report a bug[0] for Mojave but I wouldn't hold my breath.
That's a MacPorts problem. Debian has libgccjit0 package for example. In due time, MacPorts will also package gccjit.
Google helps:
https://gist.github.com/AllenDang/f019593e65572a8e0aefc96058...
Macports has gccjit since gcc10, just somebody needs to update Emacs.
What others archs? All of course
Google should also help you understand that the libgcc port does not provide for libgccjit for whatever reason.
I'm writing my own Portfile to get libgccjit 11 now. The emacs-devel port does bring in the entire gcc10, but I just want libgccjit.
Small jit dependency. 1MB compared to 30MB.
Fast JIT. At least 3x faster than llvm.
All architectures. LLVM only supports a tiny amount of architectures, gccjit all.
Only the desperate do llvm jitting.