ports/devel/llvm17/files/llvm-wrapper.sh.in
Brooks Davis db44bb97e6 devel/llvm17: bootstrap from devel/llvm16
Copy llvm16 unchanged except for the exclusion of patches backporting
fixes from upstream LLVM.

This aids diffing to the previous version.
2023-08-01 00:46:27 +01: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}" "${@}"