#!/usr/bin/env bash # brintar — the archiver front door. # # Unlike its binutils siblings this is not a bare llvm-ar wrapper: the # implementation in libexec/ resolves the pinned LLVM through the same search # the drivers use and refuses by name if llvm-ar is not executable there. # No sysroot is required — an archive is a container, not a link. 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 exec "$BRINTIUM/libexec/brintar" "$@"