llvm.org GIT mirror llvm / 5250f1f
Build universal llvm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44030 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 11 years ago
1 changed file(s) with 4 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
11 # LLVM LOCAL file B&I
22
33 set -x
4
5 # -arch arguments are different than configure arguments. We need to
6 # translate them.
7
8 TRANSLATE_ARCH="sed -e s/ppc/powerpc/ -e s/i386/i686/"
94
105 # Build LLVM the "Apple way".
116 # Parameters:
138 # The first parameter is a space-separated list of the architectures the
149 # compilers will run on. For instance, "ppc i386". If the current machine
1510 # isn't in the list, it will (effectively) be added.
16 HOSTS=`echo $1 | $TRANSLATE_ARCH `
11 # FIXME: HOSTS is not used in this script. Use it or Remove it.
12 HOSTS="$1"
1713
1814 # The second parameter is a space-separated list of the architectures the
1915 # compilers will generate code for. If the current machine isn't in the list, a
2016 # compiler for it will get built anyway, but won't be installed.
21 TARGETS=`echo $2 | $TRANSLATE_ARCH`
17 TARGETS="$2"
2218
2319 # The third parameter is the path to the compiler sources. There should be a
2420 # shell script named 'configure' in this directory. This script makes a copy...
10197 # Note: Don't pass -jN here. Building universal already has parallelism and we
10298 # don't want to make the builders hit swap by firing off too many gcc's at the
10399 # same time.
104 make $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$LLVM_ARCHS" \
100 make $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
105101 CXXFLAGS="-DLLVM_VERSION_INFO='\" Apple Build #$LLVM_VERSION\"'"
106102
107103 if ! test $? == 0 ; then