Change lib lto install location.
authorDevang Patel <dpatel@apple.com>
Fri, 30 Nov 2007 23:27:57 +0000 (23:27 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 30 Nov 2007 23:27:57 +0000 (23:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44476 91177308-0d34-0410-b5e6-96231b3b80d8

utils/buildit/build_llvm

index 56d8fc82bef4b644c635e2cd18ff47f5c957f66a..5e03e8d9c23d9ce2770ec5cc8e311558378e8a01 100755 (executable)
@@ -166,6 +166,15 @@ fi
 cd $DEST_DIR$DEST_ROOT
 lipo -extract ppc -extract i386 lib/LLVMlto.0.0.0.so -output lib/LLVMlto.0.0.0.so
 
+# LTO is part of developer tools
+LTO_HOME=$DEST_DIR//Developer/usr/lib
+if [ "x$DEVELOPER_BIN" != "x" ]; then
+LTO_HOME=$DEST_DIR/$DEVELOPER_DIR/usr/lib
+fi
+
+mkdir -p $LTO_HOME
+mv lib/LLVMlto* $LTO_HOME/.
+
 ################################################################################
 # Create SYM_DIR with information required for debugging.