ports/devel/llvm16/files/llvm-wrapper.sh.in
Brooks Davis 73fd0eb88d devel/llvm16: copy unchanged from devel/llvm15
This is a copy of llvm15 at 79aeb739c5.
Copying it unmodifed makes it easy to diff to the source.

Sponsored by: DARPA
2023-01-30 23:38:36 +00:00

11 lines
296 B
Bash

#!/bin/sh
LLVM_PREFIX="%%LLVM_PREFIX%%"
LLVM_SUFFIX="%%LLVM_SUFFIX%%"
tool=$0
[ -L "$tool" ] && tool=$(/bin/realpath $tool)
tool=${tool##*/}
tool="${LLVM_PREFIX}/bin/${tool%${LLVM_SUFFIX}}"
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \
exec "${tool}" "${@}"