#!/usr/bin/env bash # brintranlib — llvm-ranlib from the pinned LLVM. # # Autotools sets RANLIB alongside AR; both must come from the same LLVM as the archives they index. # # Routed through libexec/config.sh rather than left to PATH: a host llvm-ranlib of a # different version cannot read this toolchain's bitcode, and its failure mode # is an empty or wrong answer rather than a version error. set -euo pipefail # readlink -f, not dirname alone: these front doors are meant to be symlinked # into a prefix on PATH, and a symlink's dirname is the prefix, not this repo. source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/../libexec/config.sh" brintium_require llvm brintium_exec_llvm_tool llvm-ranlib "$@"