summaryrefslogtreecommitdiff
path: root/lang/clang-devel/files/llvm-wrapper.sh.in
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2013-11-06 00:13:02 +0000
committerBrooks Davis <brooks@FreeBSD.org>2013-11-06 00:13:02 +0000
commit544d2a5976a862030bf26c33b27ab85f193f2e99 (patch)
tree299f776921c11714470e2d36b42ead7bfe10d4d7 /lang/clang-devel/files/llvm-wrapper.sh.in
parent- Reduce unnecessary dependencies by use cups-client for library. (diff)
Upgrade the llvm development ports to r193887. We're about two weeks
from the LLVM 3.4 branch starting. Apply the clang portion of r255321 from base switching the default C++ library to libc++ on 10+. Correct clang's notion of the underlying type of (u)intmax_t on MIPS64.
Diffstat (limited to 'lang/clang-devel/files/llvm-wrapper.sh.in')
-rw-r--r--lang/clang-devel/files/llvm-wrapper.sh.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/clang-devel/files/llvm-wrapper.sh.in b/lang/clang-devel/files/llvm-wrapper.sh.in
new file mode 100644
index 000000000000..0a460f3156e5
--- /dev/null
+++ b/lang/clang-devel/files/llvm-wrapper.sh.in
@@ -0,0 +1,10 @@
+#!/bin/sh
+# $FreeBSD$
+
+LLVM_PREFIX="%%LLVM_PREFIX%%"
+LLVM_SUFFIX="%%LLVM_SUFFIX%%"
+
+tool=$(basename $0)
+tool="${LLVM_PREFIX}/bin/${tool%${LLVM_SUFFIX}}"
+LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${LLVM_PREFIX}/lib" \
+ "${tool}" "${@}"