aboutsummaryrefslogtreecommitdiffstats
path: root/lang/clang35/files/llvm-wrapper.sh.in
blob: b06754a834c0b146a1044b86886011317ce6fe55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# $FreeBSD$

LLVM_PREFIX="%%LLVM_PREFIX%%"
LLVM_SUFFIX="%%LLVM_SUFFIX%%"

tool=$(basename $0)
tool="${LLVM_PREFIX}/bin/${tool%${LLVM_SUFFIX}}"
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${LLVM_PREFIX}/lib/python" \
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \
    exec "${tool}" "${@}"