Set UNIVERSAL_ARCH value.
authorDevang Patel <dpatel@apple.com>
Mon, 6 Oct 2008 21:24:48 +0000 (21:24 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 6 Oct 2008 21:24:48 +0000 (21:24 +0000)
Fixes build failure when target is i386.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57211 91177308-0d34-0410-b5e6-96231b3b80d8

utils/buildit/build_llvm

index 47820020026322ce4e21f90638d6e35e9f567046..6b83477e2cbf4ec2e6ac80d0094207b0d4309707 100755 (executable)
@@ -157,7 +157,8 @@ rm -rf * || exit 1
 cd $DIR/obj-llvm || exit 1
 
 # Install the tree into the destination directory.
-make $LOCAL_MAKEFLAGS $OPTIMIZE_OPTS UNIVERSAL=1 OPTIMIZE_OPTION='-O2' install
+make $LOCAL_MAKEFLAGS $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
+    OPTIMIZE_OPTION='-O2' install
 
 if ! test $? == 0 ; then
     echo "error: LLVM 'make install' failed!"