ports/devel/llvm20/files/llvm-wrapper.sh.in
Brooks Davis ef18b7c1de devel/llvm20: bootstrap from llvm19
Copy devel/llvm19 to devel/llvm20 unmodified to aid history tracking.
The next commit will modify it and connect it to the build.

Sponsored by:	DARPA, AFRL
2025-02-06 22:40:05 +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}" "${@}"