ports/devel/llvm14/files/llvm-wrapper.sh.in
Brooks Davis 6b85c3b08b devel/llvm14: bootstrap from llvm13
devel/llvm14 now contains an exact copy of devel/llvm13.  The next commit
wil update it to llvm14 and connect it to the build.
2022-02-10 18:13:01 +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}" "${@}"