Notable *port* changes (vs devel/llvm11): - Switch to single llvm-project distfile. This simplifies the port and support for the old style build process is rotting upstream after the mono-repo conversion. - Disable libedit dependency in libLLVM (still used by LLDB). This is one small step toward a dependency-less clang. - LLDB docs are disabled due to issues finding python includes when autogenerating API docs. Sponsored by: DARPA
13 lines
308 B
Bash
13 lines
308 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
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}" "${@}"
|