[llvm-commits] [llvm-gcc-4.2] r102699 - /llvm-gcc-4.2/trunk/build_gcc

Bob Wilson bob.wilson at apple.com
Fri Apr 30 08:53:38 PDT 2010


Were you building llvmCore with INSTALL_LIBLTO=yes?  The default is to leave libLTO.dylib in /Developer/usr/local/lib.  My intention was that only the llvmgcc42 build would set INSTALL_LIBLTO=yes.  I put that option in the llvmCore build just in case someone needed to build it to match what we used to do.

Your patch is fine, but it would be better to stop setting INSTALL_LIBLTO=yes for your llvmCore build.  If that's not what you're doing, then I'll be curious to know why you needed this patch.

On Apr 30, 2010, at 1:16 AM, Bill Wendling wrote:

> Author: void
> Date: Fri Apr 30 03:16:38 2010
> New Revision: 102699
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=102699&view=rev
> Log:
> Change to accomodate finding libLTO when building with llvmCore inside
> llvmgcc42's directory.
> 
> Modified:
>    llvm-gcc-4.2/trunk/build_gcc
> 
> Modified: llvm-gcc-4.2/trunk/build_gcc
> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/build_gcc?rev=102699&r1=102698&r2=102699&view=diff
> ==============================================================================
> --- llvm-gcc-4.2/trunk/build_gcc (original)
> +++ llvm-gcc-4.2/trunk/build_gcc Fri Apr 30 03:16:38 2010
> @@ -769,13 +769,16 @@
> 
> # Install libLTO.dylib
> if [ "$INSTALL_LIBLTO" == yes ]; then
> -  if [ ! -r $LLVMCORE_PATH/lib/libLTO.dylib ]; then
> -    echo "Error: llvmCore installation is missing libLTO.dylib"
> -    exit 1
> +  LTO=$LLVMCORE_PATH/lib/libLTO.dylib
> +  if [ ! -r $LTO  ]; then
> +    LTO=$LLVMCORE_PATH/../lib/libLTO.dylib
> +    if [ ! -r $LTO ]; then
> +      echo "Error: llvmCore installation is missing libLTO.dylib"
> +      exit 1
> +    fi
>   fi
>   mkdir -p $DEST_DIR/Developer/usr/lib
> -  cp $LLVMCORE_PATH/lib/libLTO.dylib \
> -     $DEST_DIR/Developer/usr/lib/libLTO.dylib
> +  cp $LTO $DEST_DIR/Developer/usr/lib/libLTO.dylib
>   strip -S $DEST_DIR/Developer/usr/lib/libLTO.dylib
> 
>   # Add a symlink in /usr/lib for B&I.
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list