Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.49 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.49 KB

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

Homebrew

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

Historical releases

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 and gprbuild 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!)