[llvm-commits] [llvm-gcc-4.0] r42379 - /llvm-gcc-4.0/trunk/build_gcc
Bill Wendling
isanbard at gmail.com
Wed Sep 26 14:45:52 PDT 2007
Author: void
Date: Wed Sep 26 16:45:52 2007
New Revision: 42379
URL: http://llvm.org/viewvc/llvm-project?rev=42379&view=rev
Log:
Warnings okay during debug build.
Modified:
llvm-gcc-4.0/trunk/build_gcc
Modified: llvm-gcc-4.0/trunk/build_gcc
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/build_gcc?rev=42379&r1=42378&r2=42379&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/build_gcc (original)
+++ llvm-gcc-4.0/trunk/build_gcc Wed Sep 26 16:45:52 2007
@@ -170,7 +170,13 @@
# These are the configure and build flags that are used.
# APPLE LOCAL begin LLVM Support for non /usr $DEST_ROOT, use libstdc++
-CONFIGFLAGS="--disable-checking --enable-werror \
+if [ "x$LLVM_DEBUG" == "x" ]; then
+ CHECKING_FLAGS="--disable-checking --enable-werror"
+else
+ CHECKING_FLAGS="--enable-checking"
+fi
+
+CONFIGFLAGS="$CHECKING_FLAGS \
--prefix=$DEST_ROOT \
--mandir=$LLVM_INSTALL_PREFIX/share/man \
--enable-languages=c,objc,c++,obj-c++ \
@@ -298,7 +304,12 @@
mkdir -p $DIR/obj-$BUILD-$t $DIR/dst-$BUILD-$t || exit 1
cd $DIR/obj-$BUILD-$t || exit 1
if [ \! -f Makefile ]; then
- $SRC_DIR/configure $CONFIGFLAGS --enable-werror-always \
+ if [ "x$LLVM_DEBUG" == "x" ]; then
+ WERROR_FLAGS="--enable-werror-always"
+ else
+ WERROR_FLAGS=""
+ fi
+ $SRC_DIR/configure $CONFIGFLAGS $WERROR_FLAGS \
`if [ $t = i686 ] ; then echo $I386_CPU ; fi` \
--program-prefix=$t-apple-darwin$DARWIN_VERS- \
--host=$BUILD-apple-darwin$DARWIN_VERS --target=$t-apple-darwin$DARWIN_VERS || exit 1
More information about the llvm-commits
mailing list