![]() ![]() I would recommend using the instructions I wrote up for the aarch64 support PR: Add aarch64 support for macOS/darwin targets by maxfierke Those instructions are a little bit out of date. With that in place, I’m seeing compile times on my apps up to 30% faster than on my iMac - which is the Intel Mac with the fastest single-core benchmarks on Geekbench. I did add -release to compile the compiler in the last step to optimize compilation times for my apps, though. On my M1 MBP I compiled the compiler from source with those instructions. The good news is that there are instructions for building Crystal on the M1. The pkg file from the releases page is built for the x86_64 architecture, so it’ll run on the M1 via Rosetta 2 but it isn’t yet optimized for the native ARM architecture of the M1 processor. The tooling inside the compiler to allow it to compile itself for the M1 processor was just released with 1.0 so M1 builds on Homebrew won’t be available until at least the next release. One of the challenges of a self-hosted compiler (the Crystal compiler is written in Crystal) is that support for other architectures must be released before it can be used to compile itself for that architecture. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |