freebsd-ports/lang/clang-cheri/files/llvm-wrapper.sh.in
Brooks Davis 9609fb978d Update to a new snapshot.
Add LLDB to the package now that is supports stage.

Add missing swig dependancy.

Fix wrapper script for prefixed command links.
2014-04-23 18:22:33 +00:00

10 lines
252 B
Bash

#!/bin/sh
# $FreeBSD$
LLVM_PREFIX="%%LLVM_PREFIX%%"
TOOL_PREFIX="%%TOOL_PREFIX%%"
tool=$(basename $0)
tool="${LLVM_PREFIX}/bin/${tool#${TOOL_PREFIX}}"
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \
"${tool}" "${@}"