summaryrefslogtreecommitdiff
path: root/utils/buildit
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-11-12 23:53:43 +0000
committerDevang Patel <dpatel@apple.com>2007-11-12 23:53:43 +0000
commit5250f1f4b0720f0fb7c01fc8340ada94ba3531aa (patch)
tree8d240d080db1d49f0e73586c2bf1935879f84786 /utils/buildit
parent3809fbe789cd8d1c5b71d9428401799564aed26c (diff)
downloadllvm-5250f1f4b0720f0fb7c01fc8340ada94ba3531aa.tar.gz
llvm-5250f1f4b0720f0fb7c01fc8340ada94ba3531aa.tar.bz2
llvm-5250f1f4b0720f0fb7c01fc8340ada94ba3531aa.tar.xz
Build universal llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44030 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm12
1 files changed, 4 insertions, 8 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index d607f3966c..9ce57696ca 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -3,23 +3,19 @@
set -x
-# -arch arguments are different than configure arguments. We need to
-# translate them.
-
-TRANSLATE_ARCH="sed -e s/ppc/powerpc/ -e s/i386/i686/"
-
# Build LLVM the "Apple way".
# Parameters:
# The first parameter is a space-separated list of the architectures the
# compilers will run on. For instance, "ppc i386". If the current machine
# isn't in the list, it will (effectively) be added.
-HOSTS=`echo $1 | $TRANSLATE_ARCH `
+# FIXME: HOSTS is not used in this script. Use it or Remove it.
+HOSTS="$1"
# The second parameter is a space-separated list of the architectures the
# compilers will generate code for. If the current machine isn't in the list, a
# compiler for it will get built anyway, but won't be installed.
-TARGETS=`echo $2 | $TRANSLATE_ARCH`
+TARGETS="$2"
# The third parameter is the path to the compiler sources. There should be a
# shell script named 'configure' in this directory. This script makes a copy...
@@ -102,7 +98,7 @@ fi
# Note: Don't pass -jN here. Building universal already has parallelism and we
# don't want to make the builders hit swap by firing off too many gcc's at the
# same time.
-make $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$LLVM_ARCHS" \
+make $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
CXXFLAGS="-DLLVM_VERSION_INFO='\" Apple Build #$LLVM_VERSION\"'"
if ! test $? == 0 ; then