diff options
author | Stuart Hastings <stuart@apple.com> | 2009-09-28 23:42:38 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2009-09-28 23:42:38 +0000 |
commit | 9ad675893f8357add0015531dc53892bb017e54b (patch) | |
tree | b6257cee0eb2d034007bc49cc118d5ae9e780218 /utils/buildit/build_llvm | |
parent | dc3d8cc6a62fb42ddde8df9d544828798aa6365b (diff) | |
download | external_llvm-9ad675893f8357add0015531dc53892bb017e54b.zip external_llvm-9ad675893f8357add0015531dc53892bb017e54b.tar.gz external_llvm-9ad675893f8357add0015531dc53892bb017e54b.tar.bz2 |
B&I's buildit forces a PATH that omits /Developer. Temporarily add
/Developer/usr/bin to the PATH when looking for llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit/build_llvm')
-rwxr-xr-x | utils/buildit/build_llvm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index 8d8c755..91fbe15 100755 --- a/utils/buildit/build_llvm +++ b/utils/buildit/build_llvm @@ -90,11 +90,13 @@ cd $DIR/obj-llvm || exit 1 # If the user has set CC or CXX, respect their wishes. If not, # compile with LLVM-GCC/LLVM-G++ if available; if LLVM is not # available, fall back to usual GCC/G++ default. +savedPATH=$PATH ; PATH="$PATH:/Developer/usr/bin" XTMPCC=$(which llvm-gcc) if [ x$CC = x -a x$XTMPCC != x ] ; then export CC=$XTMPCC ; fi XTMPCC=$(which llvm-g++) if [ x$CXX = x -a x$XTMPCC != x ] ; then export CXX=$XTMPCC ; fi -unset XTMPCC +PATH=$savedPATH +unset XTMPCC savedPATH if [ \! -f Makefile.config ]; then $SRC_DIR/configure --prefix=$DT_HOME/local \ |