This repository contains software specifically adjusted for macOS.
Gprbuild can try to build static standalone libraries, where the 'standalone' part means that the library will be automatically elaborated. It does this using features available in GNU binutils, but not in Mach-O binary. Alternative versions of crates that normally would attempt this are provided.
langkit_support-25.0.1
, builds a plain static library.libadalang-25.0.1
, likewise.
To add the crates to your index:
$ alr index --reset-community
$ alr index \
--add=git+https://github.com/simonjwright/alire-index.mac.git \
--before=community \
--name=index_for_mac
Prior to Alire release 2.0, if you're running Homebrew (on either Intel or Apple silicon) we recommend that you add this to your shell startup scripts (after invoking shellenv
to get HOMEBREW_PREFIX
defined!):
export C_INCLUDE_PATH=$HOMEBREW_PREFIX/include
export CPLUS_INCLUDE_PATH=$HOMEBREW_PREFIX/include
export LIBRARY_PATH=$HOMEBREW_PREFIX/lib
Historically, the repository also contains software now available in later versions via standard Alire.
alr
built for Apple silicon. See the Alr binary release.- Alire crates providing
gnat
andgprbuild
for Apple silicon.gnat_macos_aarch64=14.1.0-1
, native GNAT for Apple silicon.gprbuild=24.0.1-mac-aarch64
, matching gprbuild (avoids you having to say--target=aarch64-apple-darwin
at every compilation!)