summaryrefslogtreecommitdiffstats
path: root/tools/clang
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-08 18:09:38 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-08 18:09:38 +0000
commitbcce47c992705e9858c49fcff65b9a93c4389385 (patch)
treeafa68c80b7f52156ee8551477d1623b400a7d3c2 /tools/clang
parent1cacbc67f75b3eb4a1d5720f509083be5571c323 (diff)
downloadchromium_src-bcce47c992705e9858c49fcff65b9a93c4389385.zip
chromium_src-bcce47c992705e9858c49fcff65b9a93c4389385.tar.gz
chromium_src-bcce47c992705e9858c49fcff65b9a93c4389385.tar.bz2
clang update script: clobber .dylibs
For Mac/ASan builds, a .dylib file containing ASan runtime functions is copied into the build directory from LLVM. To make sure that the .dylib file is updated when Clang is updated, we clobber all .dylib files in the build directory, similarly to how we clobber .o files. BUG=304125 Review URL: https://codereview.chromium.org/26424002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/clang')
-rwxr-xr-xtools/clang/scripts/update.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh
index 1c49d74..76fcf0a 100755
--- a/tools/clang/scripts/update.sh
+++ b/tools/clang/scripts/update.sh
@@ -140,6 +140,8 @@ if [[ "${OS}" = "Darwin" ]]; then
if [[ -d "${XCODEBUILD_DIR}" ]]; then
echo "Clobbering .o files for Xcode build"
find "${XCODEBUILD_DIR}" -name '*.o' -exec rm {} +
+ echo "Clobbering .dylib files for Xcode build"
+ find "${XCODEBUILD_DIR}" -name '*.dylib' -exec rm {} +
fi
fi
@@ -166,6 +168,12 @@ for CONFIG in Debug Release; do
find "${MAKE_DIR}/${CONFIG}/obj" -name '*.o.d' -exec rm {} +
fi
+ if [[ -d "${MAKE_DIR}/${CONFIG}" ]]; then
+ # See http://crbug.com/304125
+ echo "Clobbering ${CONFIG} .dylib files for ninja and make build"
+ find "${MAKE_DIR}/${CONFIG}" -name '*.dylib' -exec rm {} +
+ fi
+
if [[ "${OS}" = "Darwin" ]]; then
if [[ -d "${XCODEBUILD_DIR}/${CONFIG}/SharedPrecompiledHeaders" ]]; then
echo "Clobbering ${CONFIG} PCH files for Xcode build"