aboutsummaryrefslogtreecommitdiffstats
path: root/utils/buildit
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-03-22 21:57:15 +0000
committerBill Wendling <isanbard@gmail.com>2008-03-22 21:57:15 +0000
commit28ecd49e9b90de5ec040ead32fbe7d12bb63b2ce (patch)
treef69defe6b5ff97dc0e977ab52dd04c935e63c20d /utils/buildit
parent2b4f7805851912d05b5bd5ef9b8a9afee1c60e39 (diff)
downloadexternal_llvm-28ecd49e9b90de5ec040ead32fbe7d12bb63b2ce.zip
external_llvm-28ecd49e9b90de5ec040ead32fbe7d12bb63b2ce.tar.gz
external_llvm-28ecd49e9b90de5ec040ead32fbe7d12bb63b2ce.tar.bz2
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
Diffstat (limited to 'utils/buildit')
-rwxr-xr-xutils/buildit/build_llvm8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index b6d0cb7..c4bf69f 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