summaryrefslogtreecommitdiffstats
path: root/tools/clang/scripts/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang/scripts/update.sh')
-rwxr-xr-xtools/clang/scripts/update.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/clang/scripts/update.sh b/tools/clang/scripts/update.sh
index 3678e97..341f47a 100755
--- a/tools/clang/scripts/update.sh
+++ b/tools/clang/scripts/update.sh
@@ -102,7 +102,15 @@ rm -f "${STAMP_FILE}"
# created them.
if [[ "${OS}" = "Darwin" ]]; then
XCODEBUILD_DIR="${THIS_DIR}/../../../xcodebuild"
- MAKE_DIR="${THIS_DIR}/../../../out"
+ if [ -f "${THIS_DIR}/../../../WebKit.gyp" ]; then
+ # We're inside a WebKit checkout.
+ # TODO(thakis): try to unify the directory layout of the xcode- and
+ # make-based builds. http://crbug.com/110455
+ MAKE_DIR="${THIS_DIR}/../../../../../../out"
+ else
+ # We're inside a Chromium checkout.
+ MAKE_DIR="${THIS_DIR}/../../../out"
+ fi
for CONFIG in Debug Release; do
if [[ -d "${MAKE_DIR}/${CONFIG}/obj.target" ]]; then
echo "Clobbering ${CONFIG} PCH files for make build"