From: Bill Wendling Date: Sat, 22 Mar 2008 21:57:15 +0000 (+0000) Subject: Don't strip things when we're doing a debug build. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=28ecd49e9b90de5ec040ead32fbe7d12bb63b2ce;p=oota-llvm.git Don't strip things when we're doing a debug build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48696 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm index b6d0cb73132..c4bf69f1929 100755 --- a/utils/buildit/build_llvm +++ b/utils/buildit/build_llvm @@ -141,9 +141,11 @@ fi echo "#define LLVM_VERSION ${RC_ProjectSourceVersion}" > $DEST_DIR$DEST_ROOT/include/llvm/Version.h echo "#define LLVM_MINOR_VERSION ${RC_ProjectSourceSubversion}" >> $DEST_DIR$DEST_ROOT/include/llvm/Version.h -# Strip local symbols from llvm libraries. -strip -S $DEST_DIR$DEST_ROOT/lib/*.[oa] -strip -Sx $DEST_DIR$DEST_ROOT/lib/*.so +if [ "x$LLVM_DEBUG" != "x1" ]; then + # Strip local symbols from llvm libraries. + strip -S $DEST_DIR$DEST_ROOT/lib/*.[oa] + strip -Sx $DEST_DIR$DEST_ROOT/lib/*.so +fi # Remove .dir files cd $DEST_DIR$DEST_ROOT