Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: tools/clang/scripts/package.sh

Issue 303473011: Package libclang_rt.san-{i386,x86_64}.a for Chromium Clang. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added xargs Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/package.sh
diff --git a/tools/clang/scripts/package.sh b/tools/clang/scripts/package.sh
index 993f69468e19b0e688c1e1540db645781826b5b4..0e05d903599e41c22041005aa87d91a3ff309b48 100755
--- a/tools/clang/scripts/package.sh
+++ b/tools/clang/scripts/package.sh
@@ -125,7 +125,7 @@ if [[ -n "${gcc_toolchain}" ]]; then
cp "${LLVM_LIB_DIR}/libstdc++.so.6" $PDIR/lib
fi
-# Copy built-in headers (lib/clang/3.2/include).
+# Copy built-in headers (lib/clang/3.x.y/include).
# libcompiler-rt puts all kinds of libraries there too, but we want only some.
if [ "$(uname -s)" = "Darwin" ]; then
# Keep only the OSX (ASan and profile) and iossim (ASan) runtime libraries:
@@ -147,9 +147,13 @@ if [ "$(uname -s)" = "Darwin" ]; then
done
else
# Keep only
- # Release+Asserts/lib/clang/*/lib/linux/libclang_rt.{[atm]san,profile,ubsan}-*.a
+ # Release+Asserts/lib/clang/*/lib/linux/libclang_rt.{[atm]san,san,ubsan,profile}-*.a
+ # , but not dfsan.
find "${LLVM_LIB_DIR}/clang" -type f -path '*lib/linux*' \
- ! -name '*[atm]san*' ! -name '*profile*' ! -name '*ubsan*' | xargs rm
+ ! -name '*[atm]san*' ! -name '*ubsan*' ! -name '*libclang_rt.san*' \
+ ! -name '*profile*' | xargs rm
+ # Strip the debug info from the runtime libraries.
+ find "${LLVM_LIB_DIR}/clang" -type f -path '*lib/linux*' | xargs strip -g
fi
cp -R "${LLVM_LIB_DIR}/clang" $PDIR/lib
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698