forked from OSchip/llvm-project
Extract the x86_64 part for the executables.
llvm-svn: 52647
This commit is contained in:
parent
e7ccb2c8c1
commit
e2af44d9c0
|
@ -173,21 +173,19 @@ rm bin/.dir etc/llvm/.dir lib/.dir
|
||||||
|
|
||||||
# Remove PPC64 fat slices.
|
# Remove PPC64 fat slices.
|
||||||
cd $DEST_DIR$DEST_ROOT/bin
|
cd $DEST_DIR$DEST_ROOT/bin
|
||||||
|
|
||||||
if [ $MACOSX_DEPLOYMENT_TARGET = "10.4" ]; then
|
if [ $MACOSX_DEPLOYMENT_TARGET = "10.4" ]; then
|
||||||
find . -perm 755 -type f -exec lipo -extract ppc -extract i386 {} -output {} \;
|
find . -perm 755 -type f -exec lipo -extract ppc -extract i386 {} -output {} \;
|
||||||
else
|
elif [ $MACOSX_DEPLOYMENT_TARGET = "10.5" ]; then
|
||||||
find . -perm 755 -type f -exec lipo -extract ppc7400 -extract i386 {} -output {} \;
|
find . -perm 755 -type f -exec lipo -extract ppc7400 -extract i386 {} -output {} \;
|
||||||
|
else
|
||||||
|
find . -perm 755 -type f -exec lipo -extract ppc7400 -extract i386 -extract x86_64 {} -output {} \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $DEST_DIR$DEST_ROOT
|
cd $DEST_DIR$DEST_ROOT
|
||||||
|
|
||||||
mkdir -p $DT_HOME/lib
|
mkdir -p $DT_HOME/lib
|
||||||
mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
|
mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
|
||||||
rm -f lib/libLTO.a lib/libLTO.la
|
rm -f lib/libLTO.a lib/libLTO.la
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Create SYM_DIR with information required for debugging.
|
# Create SYM_DIR with information required for debugging.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue