diff --git a/llvm/utils/buildit/build_llvm b/llvm/utils/buildit/build_llvm index 71b6603f8c91..6ded723dd17b 100755 --- a/llvm/utils/buildit/build_llvm +++ b/llvm/utils/buildit/build_llvm @@ -176,7 +176,9 @@ echo "#define LLVM_MINOR_VERSION ${RC_ProjectSourceSubversion}" >> $DEST_DIR$DES 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 + for file in $DEST_DIR$DEST_ROOT/lib/*.so; do + strip -Sx $file + done fi # Copy over the tblgen utility.