llvm.org GIT mirror llvm / d13af63
Remove dead code for installing libLTO when building llvmCore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153978 91177308-0d34-0410-b5e6-96231b3b80d8 Bob Wilson 7 years ago
2 changed file(s) with 7 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
4545 LLVM_OPTIMIZED := yes
4646 endif
4747
48 # Default to not install libLTO.dylib.
49 INSTALL_LIBLTO := no
50
5148 # Default to do a native build, not a cross-build for an ARM host or simulator.
5249 ARM_HOSTED_BUILD := no
5350 IOS_SIM_BUILD := no
6562 cd $(OBJROOT) && \
6663 $(SRC)/utils/buildit/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \
6764 $(SRC) $(PREFIX) $(DSTROOT) $(SYMROOT) \
68 $(ENABLE_ASSERTIONS) $(LLVM_OPTIMIZED) $(INSTALL_LIBLTO) \
65 $(ENABLE_ASSERTIONS) $(LLVM_OPTIMIZED) \
6966 $(ARM_HOSTED_BUILD) $(IOS_SIM_BUILD) \
7067 $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion)
7168
4141 # build.
4242 LLVM_OPTIMIZED="$8"
4343
44 # The ninth parameter is a yes/no that indicates whether libLTO.dylib
45 # should be installed.
46 INSTALL_LIBLTO="$9"
47
4844 # A yes/no parameter that controls whether to cross-build for an ARM host.
49 ARM_HOSTED_BUILD="${10}"
45 ARM_HOSTED_BUILD="$9"
5046
5147 # A yes/no parameter that controls whether to cross-build for the iOS simulator
52 IOS_SIM_BUILD="${11}"
48 IOS_SIM_BUILD="${10}"
5349
5450 # The version number of the submission, e.g. 1007.
55 LLVM_SUBMIT_VERSION="${12}"
51 LLVM_SUBMIT_VERSION="${11}"
5652
5753 # The subversion number of the submission, e.g. 03.
58 LLVM_SUBMIT_SUBVERSION="${13}"
54 LLVM_SUBMIT_SUBVERSION="${12}"
5955
6056 # The current working directory is where the build will happen. It may already
6157 # contain a partial result of an interrupted build, in which case this script
296292 | cpio -pdml $SYM_DIR/src || exit 1
297293
298294 ################################################################################
299 # Install and strip libLTO.dylib
295 # Remove libLTO.dylib and lto.h. Those are installed by clang.
300296
301297 cd $DEST_DIR$DEST_ROOT
302 if [ "$INSTALL_LIBLTO" = "yes" ]; then
303 DT_HOME="$DEST_DIR/Developer/usr"
304 mkdir -p $DT_HOME/lib
305 mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
306
307 # Save a copy of the unstripped dylib
308 mkdir -p $SYM_DIR/Developer/usr/lib
309 cp $DT_HOME/lib/libLTO.dylib $SYM_DIR/Developer/usr/lib/libLTO.dylib
310
311 # Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or
312 # PPC objects!
313 $STRIP -arch all -Sl $DT_HOME/lib/libLTO.dylib
314
315 if [ "x$DISABLE_USR_LINKS" == "x" ]; then
316 # Add a symlink in /usr/lib for B&I.
317 mkdir -p $DEST_DIR/usr/lib/
318 (cd $DEST_DIR/usr/lib && \
319 ln -s ../../Developer/usr/lib/libLTO.dylib ./libLTO.dylib)
320 fi
321 else
322 rm -f lib/libLTO.dylib
323 fi
298 rm -f lib/libLTO.dylib
324299 rm -f lib/libLTO.a lib/libLTO.la
325
326 # Omit lto.h from the result. Clang will supply.
327300 find $DEST_DIR$DEST_ROOT -name lto.h -delete
328301
329302 ################################################################################