llvm.org GIT mirror llvm / 29c8a78
Try to get embedded build of llvmCore to pass verification. Simplify some things in the process. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108382 91177308-0d34-0410-b5e6-96231b3b80d8 Bob Wilson 9 years ago
2 changed file(s) with 9 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
3131
3232 #######################################################################
3333
34 PREFIX = /usr/local
34 PREFIX = /Developer/usr/local
3535
3636 # Unless assertions are forced on in the GMAKE command line, disable them.
3737 ifndef ENABLE_ASSERTIONS
6969 $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion)
7070
7171 EmbeddedHosted:
72 $(MAKE) ARM_HOSTED_BUILD=yes install
72 $(MAKE) ARM_HOSTED_BUILD=yes PREFIX=/usr install
7373
7474 # installhdrs does nothing, because the headers aren't useful until
7575 # the compiler is installed.
6161
6262 DARWIN_VERS=`uname -r | sed 's/\..*//'`
6363 echo DARWIN_VERS = $DARWIN_VERS
64
65 DEVELOPER_DIR="${DEVELOPER_DIR-Developer}"
66 if [ "$ARM_HOSTED_BUILD" = yes ]; then
67 DT_HOME="$DEST_DIR/usr"
68 else
69 DT_HOME="$DEST_DIR/$DEVELOPER_DIR/usr"
70 fi
71
72 DEST_ROOT="/$DEVELOPER_DIR$DEST_ROOT"
7364
7465 ################################################################################
7566 # Run the build.
130121 fi
131122
132123 if [ "$ARM_HOSTED_BUILD" = yes ]; then
133 configure_prefix=$DT_HOME
134124 configure_opts="--enable-targets=arm --host=arm-apple-darwin10 \
135125 --target=arm-apple-darwin10 --build=i686-apple-darwin10"
136126 else
137 configure_prefix=$DT_HOME/local
138127 configure_opts="--enable-targets=arm,x86,powerpc,cbe"
139128 fi
140129
141130 if [ \! -f Makefile.config ]; then
142 $SRC_DIR/configure --prefix=$configure_prefix $configure_opts \
131 $SRC_DIR/configure --prefix=$DEST_DIR$DEST_ROOT $configure_opts \
143132 --enable-assertions=$LLVM_ASSERTIONS \
144133 --enable-optimized=$LLVM_OPTIMIZED \
145134 --disable-bindings \
253242 fi
254243
255244 # Copy over the tblgen utility.
256 cp `find $DIR -name tblgen` $DT_HOME/local/bin
245 cp `find $DIR -name tblgen` $DEST_DIR$DEST_ROOT/bin
257246
258247 # Remove .dir files
259248 cd $DEST_DIR$DEST_ROOT
273262 fi
274263
275264 # The Hello dylib is an example of how to build a pass. No need to install it.
276 rm $DEST_DIR$DEST_ROOT/lib/libLLVMHello.dylib
265 rm $DEST_DIR$DEST_ROOT/lib/LLVMHello.dylib
277266
278267 # Compress manpages
279268 MDIR=$DEST_DIR$DEST_ROOT/share/man/man1
323312
324313 cd $DEST_DIR$DEST_ROOT
325314 if [ "$INSTALL_LIBLTO" = "yes" ]; then
315 DT_HOME="$DEST_DIR/Developer/usr"
326316 mkdir -p $DT_HOME/lib
327317 mv lib/libLTO.dylib $DT_HOME/lib/libLTO.dylib
328318
329319 # Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or
330320 # PPC objects!
331321 strip -arch all -Sl $DT_HOME/lib/libLTO.dylib
322 else
323 rm -f lib/libLTO.dylib
332324 fi
333325 rm -f lib/libLTO.a lib/libLTO.la
334326
362354 if [ "$INSTALL_LIBLTO" = "yes" ]; then
363355 mkdir -p $DEST_DIR/usr/lib/
364356 cd $DEST_DIR/usr/lib && \
365 ln -s ../../$DEVELOPER_DIR/usr/lib/libLTO.dylib ./libLTO.dylib
357 ln -s ../../Developer/usr/lib/libLTO.dylib ./libLTO.dylib
366358 fi
367359
368360 ################################################################################