linux bit helps, but otherwise the filenames are fairly inscrutable. How are you supposed to choose between them?
Well, the bit between the software’s name and version number and the file extension —
arm-unknown-linux-gnueabihf for example — is known as an LLVM target triple. ‘LLVM’ from the software that defined the term, ‘target’ because it defines the target architecture, and ‘triple’ because it originally had exactly three parts (today it can have between two and five parts, which makes parsing it a little painful). The syntax is:
You can see all the available values in the
From that we can determine that
- The ARM architecture (
- From any vendor (
- For a Linux-based OS (
- Cross-compiled for the ARM Embedded ABI with hardware floating-point linkage (
Quite the mouthful!
If you want to see the unambiguous target triple for your system, run
gcc -dumpmachine. The output on my 2020 M1 MacBook Pro is:
Unfortunately, that tells me that there is no pre-built download available
directly from the ripgrep v13.0.0 release — they offer
while I need