llvm.org GIT mirror llvm / 8d3f36f
Extract the x86_64 part for the executables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52647 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 11 years ago
1 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
172172
173173 # Remove PPC64 fat slices.
174174 cd $DEST_DIR$DEST_ROOT/bin
175
176175 if [ $MACOSX_DEPLOYMENT_TARGET = "10.4" ]; then
177176 find . -perm 755 -type f -exec lipo -extract ppc -extract i386 {} -output {} \;
177 elif [ $MACOSX_DEPLOYMENT_TARGET = "10.5" ]; then
178 find . -perm 755 -type f -exec lipo -extract ppc7400 -extract i386 {} -output {} \;
178179 else
179 find . -perm 755 -type f -exec lipo -extract ppc7400 -extract i386 {} -output {} \;
180 find . -perm 755 -type f -exec lipo -extract ppc7400 -extract i386 -extract x86_64 {} -output {} \;
180181 fi
181182
182183 cd $DEST_DIR$DEST_ROOT
183
184184 mkdir -p $DT_HOME/lib
185185 mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
186186 rm -f lib/libLTO.a lib/libLTO.la
187
188
189187
190188 ################################################################################
191189 # Create SYM_DIR with information required for debugging.